Skip to content

Commit

Permalink
http: finish res after req
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Jul 14, 2019
1 parent c1f0cbe commit 53910a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/_http_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,11 @@ function onParserExecuteCommon(server, socket, parser, state, ret, d) {
}

function resOnFinish(req, res, socket, state, server) {
if (!req.complete) {
req.on('end', resOnFinish.bind(null, req, res, socket, state, server));
return;
}

// Usually the first incoming element should be our request. it may
// be that in the case abortIncoming() was called that the incoming
// array will be empty.
Expand Down

0 comments on commit 53910a3

Please sign in to comment.