Skip to content

Commit

Permalink
fix(http1): Fixed erroneous socket-reuse logic
Browse files Browse the repository at this point in the history
  • Loading branch information
grantila committed Mar 12, 2019
1 parent 55ea6da commit 94a983c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/context-http1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class OriginPool

this.usedSockets.delete( socket );

if ( this.maxFreeSockets >= this.unusedSockets.size + 1 )
if ( this.maxFreeSockets < this.unusedSockets.size + 1 )
{
await this.disconnectSocket( socket );
return;
Expand Down

0 comments on commit 94a983c

Please sign in to comment.