Repository navigation
Make it possible to set Response/Request highWaterMark on http.Server #46606
Copy link
Copy link
Closed
Labels
feature requestIssues requesting new Node.js features.Issues requesting new Node.js features.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.Issues that need assistance from volunteers or PRs that need help to proceed.httpIssues and PRs related to the http subsystem.Issues and PRs related to the http subsystem.
Description
Activity
- addedhelp wantedIssues that need assistance from volunteers or PRs that need help to proceed.Issues that need assistance from volunteers or PRs that need help to proceed.httpIssues and PRs related to the http subsystem.Issues and PRs related to the http subsystem.feature requestIssues requesting new Node.js features.Issues requesting new Node.js features.
on Feb 10, 2023 @nodejs/performance
- 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 I think we can safely increase it. Maybe bring it to 32KB both ways?
I think we can safely increase it. Maybe bring it to 32KB both ways?
#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.
Reacted by Luigi Pinca and Raz LuvatonReacted by Toni VillenaWas 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?
Some push back in #46608
Reacted by Benjamin Gruenbaum and MK (fengmk2)Hi,
I am interested to work on the changes.What I have tried,
Option 1:
- Store the new opt in
storeHTTPOptions - Set it when calling
IncomingMessage - Set it when calling
ServerResponse, similar to settingkUniqueHeaders
Draft 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!- Store the new opt in
- added a commit that references this issue
on Apr 21, 2023 - added a commit that references this issue
on Apr 24, 2023 - added a commit that references this issue
on May 2, 2023 - added a commit that references this issue
on Jul 6, 2023 - added a commit that references this issue
on Jul 6, 2023
Metadata
Metadata
Assignees
Labels
feature requestIssues requesting new Node.js features.Issues requesting new Node.js features.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.Issues that need assistance from volunteers or PRs that need help to proceed.httpIssues and PRs related to the http subsystem.Issues and PRs related to the http subsystem.
It would be helpful to have an option on
http.createServerthat sets the highWaterMark on all sockets created. The default highWaterMark is IMHO kind of low for most modern server hardware...