Recycle http client parsers
This commit is contained in:
parent
1efd261572
commit
b7947e45c0
@ -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…
x
Reference in New Issue
Block a user