* fhandler_socket.cc (fhandler_socket::send_internal): Just use wmem size if

the length exceeds it.
* net.cc (fdsock): Use 65535 as window size, just like the comment says or we
run into problems with DuplicateHandle.
* path.cc (patch_conv::check): Use set_path to set invalid filename.
* path.h (path_conv::path_conv): Ditto.
This commit is contained in:
Christopher Faylor
2009-08-04 22:35:35 +00:00
parent 3b689b97bd
commit 631681619e
5 changed files with 15 additions and 5 deletions

View File

@@ -1499,7 +1499,7 @@ fhandler_socket::send_internal (struct _WSAMSG *wsamsg, int flags)
buf.len = wsamsg->lpBuffers[i].len - off;
/* See net.cc:fdsock() and MSDN KB 823764 */
if (buf.len >= (unsigned) wmem ())
buf.len = (unsigned) wmem () - 1;
buf.len = (unsigned) wmem ();
}
do