From: Wayne Davison Date: Sun, 13 Jun 2004 14:18:48 +0000 (+0000) Subject: Added a short msleep() after option_error() before we exit. This X-Git-Tag: v2.6.3pre1~192 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e5614383d07df443ca1170360277205d1721137;p=thirdparty%2Frsync.git Added a short msleep() after option_error() before we exit. This 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. --- diff --git a/clientserver.c b/clientserver.c index 07576471..555c3154 100644 --- a/clientserver.c +++ b/clientserver.c @@ -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); }