[PATCH] Cygwin: set SSH_IOBUFSZ to 65535

Corinna Vinschen vinschen at redhat.com
Fri Jan 22 20:40:39 EST 2010


Hi,


could somebody with checkin rights please apply the below patch?

A while back we set SSH_IOBUFSZ, the size of the IO buffers used by
ssh, to 65536 for Cygwin, which resulted in a noticable speed up of
the connection.  However, due to constraints in Windows Sockets in terms
of socket inheritance, we had to reduce the default SO_RCVBUF/SO_SNDBUF
buffer size in Cygwin from 65536 to 65535.  The below patch sets this size
for the ssh buffers as well.  The match between application buffer and
Windows socket buffers results in the best throughput.


Thanks,
Corinna


Index: configure.ac
===================================================================
RCS file: /cvs/openssh/configure.ac,v
retrieving revision 1.438
diff -u -p -r1.438 configure.ac
--- configure.ac	18 Jan 2010 01:05:39 -0000	1.438
+++ configure.ac	22 Jan 2010 09:35:57 -0000
@@ -446,7 +446,7 @@ int main(void) { exit(0); }
 	AC_DEFINE(DISABLE_FD_PASSING, 1,
 		[Define if your platform needs to skip post auth
 		file descriptor passing])
-	AC_DEFINE(SSH_IOBUFSZ, 65536, [Windows is sensitive to read buffer size])
+	AC_DEFINE(SSH_IOBUFSZ, 65535, [Windows is sensitive to read buffer size])
 	;;
 *-*-dgux*)
 	AC_DEFINE(IP_TOS_IS_BROKEN, 1,


-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat


More information about the openssh-unix-dev mailing list