@RSYNC EXIT / @RSYNC EOF

Martin Pool mbp at valinux.com
Thu Aug 23 14:49:10 EST 2001


On 22 Aug 2001, Wayne Davison <wayned at users.sourceforge.net> wrote:
> On Thu, 23 Aug 2001, Martin Pool wrote:
> > I had thought that clients refused to talk to higher-version servers,
> > but apparently not.  It's in.
> 
> Rsync will talk to a higher-version server up to a certain point --
> within the allowed version range it is the responsibility of the newer
> side to talk down to the level of the older side.  Here's the defines
> from the rsync.h file:
> 
> #define MIN_PROTOCOL_VERSION 15
> #define MAX_PROTOCOL_VERSION 30

At a quick look, I think the point of this is that 30 < ((int) ' '),
so it detects accidental connection to an ASCII-based server.  If this
is the case we might do better to jump to (say) 129 for the release
after 30.

In either case we need to future-proof the test.

> Interestingly, the code still contains some compatibility checks for
> versions 12, 13, and 14.  These checks could be removed whenever we
> like (since the current rsync will refuse to talk to anything lower
> than 15).

Oh, good.

-- 
Martin




More information about the rsync mailing list