grpc-js: Disable Nagle's Algorithm

This commit is contained in:
Michael Lumish 2025-04-04 10:52:26 -07:00
parent 9652680c5a
commit 6168fe8197
1 changed files with 1 additions and 0 deletions

View File

@ -763,6 +763,7 @@ export class Http2SubchannelConnector implements SubchannelConnector {
await secureConnector.waitForReady();
this.trace(addressString + ' secureConnector is ready');
tcpConnection = await this.tcpConnect(address, options);
tcpConnection.setNoDelay();
this.trace(addressString + ' Established TCP connection');
secureConnectResult = await secureConnector.connect(tcpConnection);
this.trace(addressString + ' Established secure connection');