Commit a259ee40 authored by Fedor Indutny's avatar Fedor Indutny Committed by Myles Borins
Browse files

http: unref socket timer on parser execute

When underlying `net.Socket` instance is consumed in http server - no
`data` events are emitted, and thus `socket.setTimeout` fires the
callback even if the data is constantly flowing into the socket.

Fix this by calling `socket._unrefTimer()` on every `onParserExecute`
call.

Fix: #5899
PR-URL: https://github.com/nodejs/node/pull/6286


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent 5b42ef5d
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment