* net.cc (fdsock): Set default socket buffer sizes to 65520. Change

comment accordingly.
	* fhandler_socket.cc (fhandler_socket::send_internal): Set maximum
	send size to 65520 as well.
This commit is contained in:
Corinna Vinschen
2009-06-30 10:36:40 +00:00
parent 9adef9ffef
commit 4a83803381
3 changed files with 18 additions and 14 deletions

View File

@@ -1489,8 +1489,8 @@ fhandler_socket::send_internal (struct _WSAMSG *wsamsg, int flags)
{
buf.buf = wsamsg->lpBuffers[i].buf + off;
buf.len = wsamsg->lpBuffers[i].len - off;
if (buf.len > 65536) /* See KB 823764 */
buf.len = 65536;
if (buf.len > 65520) /* See net.cc:fdsock() and MSDN KB 823764 */
buf.len = 65520;
do
{