Skip to content

Commit

Permalink
Ensure close upon request close.
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Apr 5, 2012
1 parent 330407c commit 09fb16b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/transports/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ HTTPTransport.prototype.handleRequest = function (req) {
// prevent memory leaks for uncompleted requests
req.on('close', function () {
buffer = '';
self.onClose();
});

if (origin) {
Expand Down

0 comments on commit 09fb16b

Please sign in to comment.