* 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:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user