* TcpConnectionPool.cs: Set NoDelay on both profiles.
svn path=/trunk/mcs/; revision=113395
+2008-09-18 Robert Jordan <robertj@gmx.net>
+
+ * TcpConnectionPool.cs: Set NoDelay on both profiles.
+
2008-09-18 Zoltan Varga <vargaz@gmail.com>
* TcpConnectionPool.cs: Set the NoDelay flag on the socket to avoid
{\r
public ReusableTcpClient (string host, int port): base (host, port)\r
{\r
+ // Avoid excessive waiting for data by the tcp stack in linux.\r
+ // We can't safely use SetSocketOption for both runtimes because\r
+ // it would break 2.0 TcpClient's property cache.\r
#if NET_2_0\r
- // Avoid excessive waiting for data by the tcp stack in linux\r
Client.NoDelay = true;\r
+#else\r
+ Client.SetSocketOption (SocketOptionLevel.Tcp,\r
+ SocketOptionName.NoDelay, 1);\r
#endif\r
}\r
\r