Skip to content

Commit 117a294

Browse files
author
Stefán J. Sigurðarson
committed
Increasing the buffers for the sockets again.
1 parent 6c3871e commit 117a294

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

projects/RabbitMQ.Client/client/api/ConnectionFactoryBase.cs

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ public class ConnectionFactoryBase
5353
public static ITcpClient DefaultSocketFactory(AddressFamily addressFamily)
5454
{
5555
var socket = new Socket(addressFamily, SocketType.Stream, ProtocolType.Tcp);
56+
socket.ReceiveBufferSize = 32 * 1024;
57+
socket.SendBufferSize = 32 * 1024;
5658
SocketConnection.SetRecommendedClientOptions(socket);
5759
return new TcpClientAdapter(socket);
5860
}

0 commit comments

Comments
 (0)