Added a short msleep() after option_error() before we exit. This
authorWayne Davison <wayned@samba.org>
Sun, 13 Jun 2004 14:18:48 +0000 (14:18 +0000)
committerWayne Davison <wayned@samba.org>
Sun, 13 Jun 2004 14:18:48 +0000 (14:18 +0000)
ensures that the remote client has time to read our error message
while it is trying to write data to us before it gets a socket
error.

clientserver.c

index 07576471d2084bd9bd9eab82db6de6faba8c5b33..555c315422cc0358e3c0faabc3e8345b6cbb4e1b 100644 (file)
@@ -460,6 +460,7 @@ static int rsync_module(int f_in, int f_out, int i)
 
        if (!ret) {
                option_error();
+               msleep(400);
                exit_cleanup(RERR_UNSUPPORTED);
        }