Browse Source

Recycle http client parsers

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
b7947e45c0
  1. 2
      lib/http.js

2
lib/http.js

@ -616,6 +616,8 @@ function Client ( ) {
// If there are more requests to handle, reconnect. // If there are more requests to handle, reconnect.
if (requests.length > 0) { if (requests.length > 0) {
self._reconnect(); self._reconnect();
} else {
freeParser(parser);
} }
}); });

Loading…
Cancel
Save