-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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 there a good way to track how recently data was received from the remote end of an http2 session? #21730
Comments
If you're looking for an application-level solution: You could update a timestamp ( |
The issue here is that I am working with a http2 session object, but what I really want to track is every time data comes in on the underlying socket. That includes a variety of events on the http2 session and http2 stream objects, plus frames that don't trigger events at all, like WINDOW_UPDATE frames. Would it cause any problems to add an additional |
This would be a bit difficult to do and would limit performance. One thing we could do is update an internal timestamp whenever data is received, but invoking a callback or event on every chunk of data would result in a significant performance loss. |
That timestamp would be all I really need here. |
Will investigate the possibilities here. Marking as a feature request. |
Adds a time stamp indicating the last time data was received from the connected peer. Fixes: nodejs#21730
@jasnell Any results to report? |
I've got an open pr that I need to revisit in the next few weeks |
There has been no activity on this feature request for 5 months and it is unlikely to be implemented. It will be closed 6 months after the last non-automated comment. For more information on how the project manages feature requests, please consult the feature request management document. |
There has been no activity on this feature request and it is being closed. If you feel closing this issue is not the right thing to do, please leave a comment. For more information on how the project manages feature requests, please consult the feature request management document. |
I am trying to detect when a connection underlying an http2 session is broken using this strategy. In short, I want to send an http2 ping when I have at least one active stream (which I can track myself) and when I have not received any data from the server. Is there a good way to determine when was the latest time that I received any data from the server?
The text was updated successfully, but these errors were encountered: