File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
projects/RabbitMQ.Client/client/api Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 31
31
32
32
using System ;
33
33
using System . Net . Sockets ;
34
+
35
+ using Pipelines . Sockets . Unofficial ;
36
+
34
37
using RabbitMQ . Client . Impl ;
35
38
36
39
namespace RabbitMQ . Client
@@ -49,12 +52,8 @@ public class ConnectionFactoryBase
49
52
/// <returns>New instance of a <see cref="TcpClient"/>.</returns>
50
53
public static ITcpClient DefaultSocketFactory ( AddressFamily addressFamily )
51
54
{
52
- var socket = new Socket ( addressFamily , SocketType . Stream , ProtocolType . Tcp )
53
- {
54
- NoDelay = true ,
55
- ReceiveBufferSize = 65536 ,
56
- SendBufferSize = 65536
57
- } ;
55
+ var socket = new Socket ( addressFamily , SocketType . Stream , ProtocolType . Tcp ) ;
56
+ SocketConnection . SetRecommendedClientOptions ( socket ) ;
58
57
return new TcpClientAdapter ( socket ) ;
59
58
}
60
59
}
You can’t perform that action at this time.
0 commit comments