Skip to content

Commit 4341817

Browse files
committed
http: fix backport of Slowloris headers
The backport of 618eebdd17 was not complete, and the starting time to parse the headers was not reset. Fixes: #24760
1 parent 5166653 commit 4341817

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/_http_server.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,9 @@ function connectionListener(socket) {
481481
function parserOnIncoming(req, shouldKeepAlive) {
482482
incoming.push(req);
483483

484+
// Set to zero to communicate that we have finished parsing.
485+
socket.parser.parsingHeadersStart = 0;
486+
484487
// If the writable end isn't consuming, then stop reading
485488
// so that we don't become overwhelmed by a flood of
486489
// pipelined requests that may never be resolved.

0 commit comments

Comments
 (0)