mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-21 05:14:15 -04:00
Make sure daemon's io_timeout is used as a maximum value.
This commit is contained in:
1 parent
d720569422
commit
8b3e6fb985
1 file changed
+1
-1
+1
-1
@@ -947,7 +947,7 @@ static int rsync_module(int f_in, int f_out, int i, const char *addr, const char
|
||||
&& (use_chroot ? lp_numeric_ids(i) != False : lp_numeric_ids(i) == True))
|
||||
numeric_ids = -1; /* Set --numeric-ids w/o breaking protocol. */
|
||||
|
||||
if (lp_timeout(i) && lp_timeout(i) > io_timeout)
|
||||
if (lp_timeout(i) && (!io_timeout || lp_timeout(i) < io_timeout))
|
||||
set_io_timeout(lp_timeout(i));
|
||||
|
||||
/* If we have some incoming/outgoing chmod changes, append them to
|
||||
|
||||
Reference in new issue
Block a user