Commit c5130bc1 authored by Wayne Davison's avatar Wayne Davison

Improve the timeout messages.

parent f8e1fa62
...@@ -38,7 +38,6 @@ extern int bwlimit; ...@@ -38,7 +38,6 @@ extern int bwlimit;
extern size_t bwlimit_writemax; extern size_t bwlimit_writemax;
extern int io_timeout; extern int io_timeout;
extern int am_server; extern int am_server;
extern int am_daemon;
extern int am_sender; extern int am_sender;
extern int am_generator; extern int am_generator;
extern int msgs2stderr; extern int msgs2stderr;
...@@ -168,10 +167,10 @@ static void check_timeout(void) ...@@ -168,10 +167,10 @@ static void check_timeout(void)
t = time(NULL); t = time(NULL);
if (t - last_io_in >= io_timeout) { if (t - last_io_in >= io_timeout) {
if (!am_server && !am_daemon) { if (am_server)
rprintf(FERROR, "io timeout after %d seconds -- exiting\n", msgs2stderr = 1;
(int)(t-last_io_in)); rprintf(FERROR, "[%s] io timeout after %d seconds -- exiting\n",
} who_am_i(), (int)(t-last_io_in));
exit_cleanup(RERR_TIMEOUT); exit_cleanup(RERR_TIMEOUT);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment