http: fix pipeline regression
authorFedor Indutny <fedor@indutny.com>
Thu, 29 Oct 2015 18:17:37 +0000 (14:17 -0400)
committerRod Vagg <rod@vagg.org>
Thu, 3 Dec 2015 11:54:16 +0000 (22:54 +1100)
commit1c8e6de78e2580d04614aef2d783f3bed00da0eb
tree678b34d53990a2a3b3cdf380e4efef8b56124d2c
parent2d117412c6721f3780994d1bc53f3d5520a539ad
http: fix pipeline regression

Always check that socket still has the parser. It may be destroyed
interim, and we may end up with an uncaught exception.

Fix: https://github.com/nodejs/node/issues/3508
PR-URL: https://github.com/nodejs/node-private/pull/5
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
lib/_http_server.js
test/parallel/test-http-pipeline-regr-3508.js [new file with mode: 0644]