-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Why http2session.socket.bufferSize is always zero? #21631
Comments
This is due to the special way that http2 sessions interact with the socket at the native (c++) layer rather than the javascript layer. The socket object's js interface is not used directly, and therefore the bufferSize is not set. We can investigate a way of enabling that. |
@addaleax ... do you have any thoughts on how we could make |
According to the Line 518 in deaddd2
As |
This commit adds `bufferSize` for `Http2Stream`. Refs: nodejs#21631
This commit adds `bufferSize` for `Http2Stream`. Refs: nodejs#21631 PR-URL: nodejs#23711 Reviewed-By: James M Snell <[email protected]>
This commit adds `bufferSize` for `Http2Stream`. Refs: #21631 PR-URL: #23711 Reviewed-By: James M Snell <[email protected]>
The PR for this has landed so I believe we can close this. |
This commit adds `bufferSize` for `Http2Stream`. Refs: #21631 PR-URL: #23711 Reviewed-By: James M Snell <[email protected]>
I encountered a problem that I couldn't get expected bufferSize from http2session,
http2session.socket.bufferSize
is always zero.Reproduce Code
I write a test similar to test-net-buffersize.js:
Is it correct way to obtain
bufferSize
from http2 session? I need this value to throttle uploads like net.Socket do.The text was updated successfully, but these errors were encountered: