diff options
author | Christopher Faylor <me@cgf.cx> | 2009-08-04 22:35:35 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2009-08-04 22:35:35 +0000 |
commit | 631681619e1b1d1eef2b154ab14db7d803922dca (patch) | |
tree | 3d01ee255edef0a5c5c85227e159a64347962335 /winsup/cygwin/net.cc | |
parent | 3b689b97bdf13354ab88583507e100d183d3fddf (diff) | |
download | cygnal-631681619e1b1d1eef2b154ab14db7d803922dca.tar.gz cygnal-631681619e1b1d1eef2b154ab14db7d803922dca.tar.bz2 cygnal-631681619e1b1d1eef2b154ab14db7d803922dca.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/net.cc')
-rw-r--r-- | winsup/cygwin/net.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index b76d64599..85e150738 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -507,8 +507,8 @@ fdsock (cygheap_fdmanip& fd, const device *dev, SOCKET soc) (*) Maximum normal TCP window size. Coincidence? */ - ((fhandler_socket *) fd)->rmem () = 65536; - ((fhandler_socket *) fd)->wmem () = 65536; + ((fhandler_socket *) fd)->rmem () = 65535; + ((fhandler_socket *) fd)->wmem () = 65535; if (::setsockopt (soc, SOL_SOCKET, SO_RCVBUF, (char *) &((fhandler_socket *) fd)->rmem (), sizeof (int))) debug_printf ("setsockopt(SO_RCVBUF) failed, %lu", WSAGetLastError ()); |