x/net/websocket: Ability to reuse read/write buffers between connections. #18048
Labels
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
Hello!
Some applications that use web sockets may be very limited in memory consumption. It would be great if it were possible to reuse the read and write buffers between connections.
For example, some may use epoll to detect activity among idle connections and start to use the read buffer only at this moment. The situation is even more obvious to reuse the write buffer - application always knows when it wants to write to the socket.
To achieve this purpose it is sufficient to make small changes in the packet
x/net/websocket
. A draft version of such changes is here (just for the diff look).If this seems relevant, I am ready to implement this code according to the standard process of contributing.
Thanks!
The text was updated successfully, but these errors were encountered: