connection lost during the transfer

Kevin Korb kmk at sanitarium.net
Fri Jul 12 16:03:34 MDT 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It kinda depends on whether you mean the TCP connection or a
networking link connection somewhere in the middle.  If the TCP
connection breaks rsync will fail the instant it tries to use the
connection again.  If connectivity is lost (such as the ethernet being
unplugged) the TCP connection will stall until the kernel decides to
close it.  Then the TCP connection will be broken and rsync will fail
the instant it tries to use it assuming it isn't already trying.

On 07/12/13 17:58, Wayne Davison wrote:
> On Mon, Jul 1, 2013 at 4:23 AM, garvit sharma <garvits45 at gmail.com 
> <mailto:garvits45 at gmail.com>> wrote:
> 
> please tell me for what time will rsync wait if the connection 
> breaks during the file transfer ??
> 
> 
> Rsync shouldn't wait any amount of time on a connection break, but
> it only notices if it does a read or write on the pipe/socket and
> gets a failure.  If, for instance, it's still connected to your
> remote shell process via a pipe (perhaps that process hasn't failed
> yet?) then rsync will wait around for that pipe to close down
> before it would get an error.  The --timeout option just puts a
> limit on how long rsync will wait around with nothing happening on
> the socket.
> 
> ..wayne..
> 
> 

- -- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
	Kevin Korb			Phone:    (407) 252-6853
	Systems Administrator		Internet:
	FutureQuest, Inc.		Kevin at FutureQuest.net  (work)
	Orlando, Florida		kmk at sanitarium.net (personal)
	Web page:			http://www.sanitarium.net/
	PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlHgfTYACgkQVKC1jlbQAQcB1gCgy6em+U4Jb0+++dvCpVJPr744
McwAnRqRgvZTUUeqMX+juxCKy3KByrI/
=1MZv
-----END PGP SIGNATURE-----


More information about the rsync mailing list