mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-20 04:51:58 -04:00
reinstated the MAX_READ_BUFFER code. Its a nasty tradeoff - using lots
of memory vs. ssh bugs. uggh.
This commit is contained in:
1 parent
74a7f81d57
commit
cbce490e13
2 files changed
+3
-5
No files matched your search
@@ -255,9 +255,6 @@ static void read_check(int f)
|
||||
read_buffer_p = read_buffer;
|
||||
}
|
||||
|
||||
if (n > MAX_READ_BUFFER/4)
|
||||
n = MAX_READ_BUFFER/4;
|
||||
|
||||
if (read_buffer_p != read_buffer) {
|
||||
memmove(read_buffer,read_buffer_p,read_buffer_len);
|
||||
read_buffer_p = read_buffer;
|
||||
@@ -385,7 +382,8 @@ static void writefd_unbuffered(int fd,char *buf,int len)
|
||||
fd_count = fd;
|
||||
|
||||
if (!no_flush_read) {
|
||||
reading = (buffer_f_in != -1);
|
||||
reading = (buffer_f_in != -1) &&
|
||||
(read_buffer_len < MAX_READ_BUFFER);
|
||||
}
|
||||
|
||||
if (reading) {
|
||||
|
||||
Reference in new issue
Block a user