Skip to content

Commit 8b61c50

Browse files
committed
Use the correct socket option name.
1 parent 204baba commit 8b61c50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

NtApiDotNet/Win32/Rpc/Transport/RpcTcpClientTransport.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ private static Socket CreateSocket(string hostname, int port)
3434
Socket socket = new Socket(AddressFamily.InterNetworkV6, SocketType.Stream, ProtocolType.Tcp);
3535
socket.DualMode = true;
3636
// Enable no delay.
37-
socket.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.Debug, 1);
37+
socket.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.NoDelay, 1);
3838
socket.Connect(hostname, port);
3939
return socket;
4040
}

0 commit comments

Comments
 (0)