From b7947e45c092df8b032f3b689a020ed972ef485a Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 12 Apr 2010 16:34:39 -0700 Subject: [PATCH] Recycle http client parsers --- lib/http.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/http.js b/lib/http.js index 7170853..8523bd6 100644 --- a/lib/http.js +++ b/lib/http.js @@ -616,6 +616,8 @@ function Client ( ) { // If there are more requests to handle, reconnect. if (requests.length > 0) { self._reconnect(); + } else { + freeParser(parser); } }); -- 2.7.4