Skip to content

Commit

Permalink
Set TCP_NODELAY on sockets to target
Browse files Browse the repository at this point in the history
  • Loading branch information
PondWader committed May 16, 2024
1 parent 59818c3 commit 7dd27c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/connectionHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default function (connection: InitialisedSocks5Connection, sendStatus: (s
host: connection.destAddress,
port: connection.destPort
});
stream.setNoDelay();

let streamOpened = false;
stream.on('error', (err: Error & { code: string }) => {
Expand Down

0 comments on commit 7dd27c5

Please sign in to comment.