mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-24 14:48:16 -04:00
The code that tries to read an error from the socket in an abnormal-
exit situation was properly forcing the io_timeout value down to 30 seconds, but failing to set the select_timeout value.
This commit is contained in:
1 parent
ad54dcc827
commit
ef0c03ff70
1 file changed
+1
-1
@@ -916,7 +916,7 @@ static void writefd_unbuffered(int fd,char *buf,size_t len)
|
||||
/* If the other side is sending us error messages, try
|
||||
* to grab any messages they sent before they died. */
|
||||
while (fd == sock_f_out && io_multiplexing_in) {
|
||||
io_timeout = 30;
|
||||
io_timeout = select_timeout = 30;
|
||||
readfd_unbuffered(sock_f_in, io_filesfrom_buf,
|
||||
sizeof io_filesfrom_buf);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user