Skip to content

Commit

Permalink
Remove setNoDelay call to response socket (#968)
Browse files Browse the repository at this point in the history
  • Loading branch information
Supereg authored Sep 17, 2022
1 parent fdd4bc8 commit 8b2f580
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/util/eventedhttp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -676,10 +676,10 @@ export class HAPConnection extends EventEmitter {
return;
}

debugCon("[%s] HTTP request: %s", this.remoteAddress, request.url);

request.socket.setNoDelay(true);
response.connection.setNoDelay(true); // deprecated since 13.0.0

debugCon("[%s] HTTP request: %s", this.remoteAddress, request.url);
this.emit(HAPConnectionEvent.REQUEST, request, response);
}

Expand Down

0 comments on commit 8b2f580

Please sign in to comment.