-
Notifications
You must be signed in to change notification settings - Fork 934
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to send a ping frame over HTTP/2 using Armeria? #5553
Comments
At the moment, there's no simple way to send an HTTP/2 ping frame in Armeria. Although I didn't try by myself, you may be able to do so by customizing Armeria's Netty What's the use case for sending HTTP/2 pings by yourself rather than letting the framework send them to keep the connection alive? |
@trustin The nature of my environment makes it unimportant whether I set the If any further clarification is needed, please feel free to ask. Thank you. |
If your goal is to detect an unexpected disconnection and clean it up quickly, would resolving this issue solve your problem? |
Thank you @trustin, I'll take a look at the linked issue! |
Q1) Does your server forcibly close an HTTP/2 connection without sending a GOAWAY frame? Q2) Couldn't our current implementation of HTTP/2 ping-sending logic detect your network disruptions? |
In other frameworks such as Vert.x, users can send an arbitrary ping frame using its HTTP connection instance (docs)
I discovered a related PR (#2409) that introduces a feature enabling Armeria to send an HTTP/2 ping frame on an idle connection. However, this functionality was specifically implemented using Netty's ChannelHandlerContext and is exclusively available for
Http2KeepAliveHandler
. Given this context, how can I send a ping frame after establishing an HTTP/2 connection?The text was updated successfully, but these errors were encountered: