Skip to content

Commit

Permalink
http: fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
fatal10110 committed Sep 11, 2021
1 parent 661251d commit 51cf1f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/_http_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ function parserOnIncoming(server, socket, state, req, keepAlive) {

if (req.httpVersionMajor === 1 && req.httpVersionMinor === 1
&& typeof server.maxRequestsPerSocket === 'number'
&& server.maxRequestsPerSocket > ++state.requestsCount) {
&& server.maxRequestsPerSocket < ++state.requestsCount) {
res.shouldKeepAlive = false;
res.writeHead(503, {
'Connection': 'close'
Expand Down

0 comments on commit 51cf1f2

Please sign in to comment.