http: Proper KeepAlive behavior
Instead of destroying sockets when there are no pending requests, put them in a freeSockets list, and unref() them so that they do not keep the event loop open. Also, set the default max sockets to Infinity, to prevent the awful surprising deadlocks that happen when more connections are made.
parent
6176e491
Please register or sign in to comment