You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make it possible to set Response/RequesthighWaterMark on http.Server #46606
It would be helpful to have an option on http.createServer that sets the highWaterMark on all sockets created. The default highWaterMark is IMHO kind of low for most modern server hardware...
changed the title [-]Make it possible to set ServerResponse/Request high water mark on Server[/-][+]Make it possible to set `ServerResponse/Request` `highWaterMark` on `http.Server`[/+]on Feb 10, 2023
changed the title [-]Make it possible to set `ServerResponse/Request` `highWaterMark` on `http.Server`[/-][+]Make it possible to set `Response/Request` `highWaterMark` on `http.Server`[/+]on Feb 10, 2023
Activity
ronag commentedon Feb 10, 2023
@nodejs/performance
[-]Make it possible to set ServerResponse/Request high water mark on Server[/-][+]Make it possible to set `ServerResponse/Request` `highWaterMark` on `http.Server`[/+][-]Make it possible to set `ServerResponse/Request` `highWaterMark` on `http.Server`[/-][+]Make it possible to set `Response/Request` `highWaterMark` on `http.Server`[/+]mcollina commentedon Feb 10, 2023
I think we can safely increase it. Maybe bring it to 32KB both ways?
ronag commentedon Feb 10, 2023
#46608 does takes us some of the way but I think it's varies from case to case how high one can go, e.g a large amazon instance vs a raspberry pi.
benjamingr commentedon Feb 10, 2023
Was about to repeat what Matteo said - can we just increase it?
If we can't do it safely across all envs - can we just increase it based on some parameter of the system?
ronag commentedon Feb 10, 2023
Some push back in #46608
HinataKah0 commentedon Mar 22, 2023
Hi,
I am interested to work on the changes.
What I have tried,
Option 1:
storeHTTPOptionsIncomingMessageServerResponse, similar to settingkUniqueHeadersDraft Commit
Option 2:
Set both
(readable|writable)HighWaterMarkwhen creating a newSocket.Draft Commit
I'll open a PR. If this is no longer needed, please close it. 😄
Thanks!
http: add highWaterMark opt in http.createServer
http: add highWaterMark opt in http.createServer
http: add highWaterMark opt in http.createServer
http: add highWaterMark opt in http.createServer
http: add highWaterMark opt in http.createServer