* Socket.cs: Do not set the Send and Receive buffer sizes for the
socket to the defaults set on Windows, they kill our performance.
Thanks to Zoltan Varga for tracking the performance issue down.
The bug was #325032
svn path=/trunk/mcs/; revision=88700
+2007-11-01 Miguel de Icaza <miguel@novell.com>
+
+ * Socket.cs: Do not set the Send and Receive buffer sizes for the
+ socket to the defaults set on Windows, they kill our performance.
+
+ Thanks to Zoltan Varga for tracking the performance issue down.
+ The bug was #325032
+
2007-10-30 Dick Porter <dick@ximian.com>
* UdpClient.cs: Don't set the multicast option twice. Fixes bug
this.DontFragment = false;
}
- /* Set the same defaults as the MS runtime */
- this.ReceiveBufferSize = 8192;
- this.SendBufferSize = 8192;
+ //
+ // Microsoft sets these to 8192, but we are going to keep them
+ // both to the OS defaults as these have a big performance impact.
+ // on WebClient performance.
+ //
+ //this.ReceiveBufferSize = 8192;
+ //this.SendBufferSize = 8192;
} catch (SocketException) {
}
#endif