Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f918520
)
Give noop_io_until_death() a time limit.
author
Wayne Davison
<wayned@samba.org>
Sat, 7 Nov 2009 17:45:43 +0000
(09:45 -0800)
committer
Wayne Davison
<wayned@samba.org>
Sat, 7 Nov 2009 17:45:43 +0000
(09:45 -0800)
io.c
patch
|
blob
|
blame
|
history
diff --git
a/io.c
b/io.c
index
1e2f218
..
b5fd377
100644
(file)
--- a/
io.c
+++ b/
io.c
@@
-807,6
+807,7
@@
void noop_io_until_death(void)
char buf[1024];
kluge_around_eof = 1;
+ set_io_timeout(10);
while (1)
read_buf(iobuf.in_fd, buf, sizeof buf);
@@
-1324,7
+1325,7
@@
static void read_a_msg(void)
if (!io_timeout || io_timeout > val) {
if (INFO_GTE(MISC, 2))
rprintf(FINFO, "Setting --timeout=%d to match server\n", val);
-
io_timeout = val
;
+
set_io_timeout(val)
;
}
break;
case MSG_NOOP: