]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
removed the limit on the read buffer size until I fully understand the
authorAndrew Tridgell <tridge@samba.org>
Thu, 27 Aug 1998 05:07:52 +0000 (05:07 +0000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 27 Aug 1998 05:07:52 +0000 (05:07 +0000)
interactions with ssh. The old ssh freezes have shown up again and
some debugging (with help from James Welborn) showed that the cause
was the read buffer hitting maximum size. I think this means that ssh
must be misbehaving about blocking IO.

This change gets rid of the freezes at the expense of memory
usage. Where it would have frozen it uses more memory instead.

io.c

diff --git a/io.c b/io.c
index 70c6a22f0d47dfac720c6b7e8128fb911688ecd4..0f8ab919edd3223234670ef5c4d02359b7c9dc4f 100644 (file)
--- a/io.c
+++ b/io.c
@@ -337,8 +337,7 @@ static void writefd_unbuffered(int fd,char *buf,int len)
                fd_count = fd+1;
 
                if (!no_flush_read) {
-                       reading = (buffer_f_in != -1 && 
-                                  read_buffer_len < MAX_READ_BUFFER);
+                       reading = (buffer_f_in != -1);
                }
 
                if (reading) {