The server should not wait around for an extra end-of-run message.
authorWayne Davison <wayned@samba.org>
Sat, 15 Sep 2007 15:36:04 +0000 (15:36 +0000)
committerWayne Davison <wayned@samba.org>
Sat, 15 Sep 2007 15:36:04 +0000 (15:36 +0000)
io.c

diff --git a/io.c b/io.c
index 326b2d0..b3f3373 100644 (file)
--- a/io.c
+++ b/io.c
@@ -1435,7 +1435,7 @@ static void writefd_unbuffered(int fd, const char *buf, size_t len)
                                (long)len, who_am_i());
                        /* 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) {
+                       while (!am_server && fd == sock_f_out && io_multiplexing_in) {
                                set_io_timeout(30);
                                ignore_timeout = 0;
                                readfd_unbuffered(sock_f_in, io_filesfrom_buf,