http: avoid retaining unneeded memory
Prevents the events listeners of the sockets obtained with the HTTP upgrade mechanism from retaining unneeded objects like state
.
Reduces memory usage by ~20%.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines