Permalink
Browse files

Recycle http client parsers

  • Loading branch information...
1 parent 1efd261 commit b7947e45c092df8b032f3b689a020ed972ef485a @ry ry committed Apr 12, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/http.js
View
@@ -616,6 +616,8 @@ function Client ( ) {
// If there are more requests to handle, reconnect.
if (requests.length > 0) {
self._reconnect();
+ } else {
+ freeParser(parser);
}
});

0 comments on commit b7947e4

Please sign in to comment.