Martin Pool
98b332edea
Fix typo.
...
Show io phase name in error message.
2002-04-09 04:41:03 +00:00
Martin Pool
e681e82066
Rather than a loop subtracting 1e6 to convert usecs to secs/usecs, just
...
use div/mod.
2002-04-09 04:33:32 +00:00
Martin Pool
08571358b1
Factor out bwlimit sleep code from writefd_unbuffered into its own function.
2002-04-09 04:29:46 +00:00
Martin Pool
8901a07fdb
Clarify "error writing %d bytes" message.
2002-04-09 04:23:18 +00:00
Martin Pool
880da0072e
Clean up docs.
2002-04-09 04:20:36 +00:00
Martin Pool
914cc65c9d
Doc.
2002-03-22 05:14:44 +00:00
Martin Pool
3ce0f9a653
Clean up error message
2002-02-19 01:41:20 +00:00
Martin Pool
befbfe6115
Fix for rsync server processes hanging around after the client
...
unexpectedly disconnects. (Colin Walters) (Debian bug #128632 )
2002-02-18 19:54:00 +00:00
Martin Pool
87ee248169
Document multiplex stuff.
2002-02-18 19:44:04 +00:00
Martin Pool
7b5c3eb05e
io_end_buffering doesn't need (or use) it's fd parameter: there's only
...
one multiplexed stream.
2002-01-25 23:01:50 +00:00
Martin Pool
06ce139fcc
Fix more ints that ought to be size_t's.
2002-01-23 07:48:35 +00:00
Martin Pool
6fe25398d6
Fix another int that ought to be a size_t.
2002-01-23 07:36:23 +00:00
Martin Pool
909ce14fc4
indent -kr -i8
2002-01-23 07:34:26 +00:00
Martin Pool
9dd891bb28
Signedness security patch from Sebastian Krahmer <krahmer@suse.de> --
...
in some cases we were not sufficiently careful about reading integers
from the network.
Also, make sure log messages are always nul-terminated.
2002-01-23 04:57:18 +00:00
Andrew Tridgell
a57873b710
fixed check for timeout in generator
...
the generator can easily make no progress for a long time, so don't do
timeout processing checks
2001-09-09 04:42:09 +00:00
Martin Pool
7a55d06e0d
Allow the server to terminate the module list by just closing the
...
socket, rather than sending a proper EXIT command. Keep the
global-variable hack to do this, but try to make it only apply in the
specific case where that occurs, not on all lines we read.
2001-08-22 04:15:50 +00:00
Andrew Tridgell
8950ac03f8
imported new snprintf.c from samba, got rid of slprintf
2001-05-07 06:59:37 +00:00
Andrew Tridgell
81c99202d3
use %.0f instead of %ld
2001-04-13 12:25:19 +00:00
Andrew Tridgell
ff81e809f4
new error handling system
...
we now give a non-0 exit code if *any* of the files we have been asked
to transfer fail to transfer
2001-03-22 07:36:51 +00:00
Andrew Tridgell
90ba34e27c
I came up with a new way of avoiding the error handling lockup bug in
...
rsync. It isn't pretty, but it does work and should completely avoid
that class of lockup.
2001-03-21 13:12:44 +00:00
Martin Pool
8886f8d0e6
Add comments.
...
Better error message in the case of eof on read_timeout.
2001-02-22 13:02:39 +00:00
Martin Pool
ce6c7c6318
Improved error message.
2001-01-08 03:39:53 +00:00
Martin Pool
c3563c46ed
Doc.
2000-11-15 03:16:06 +00:00
Martin Pool
7a24c346b0
Print a warning message in the version if the platform cannot support 32-bit ints
2000-11-09 09:05:14 +00:00
Martin Pool
0ba481368c
Add some comments.
2000-11-02 11:37:34 +00:00
Andrew Tridgell
e92ee12893
make sure we don't chew too much CPU when the outgoing fd is full
2000-08-29 05:07:08 +00:00
Andrew Tridgell
ae682c3e11
got rid of some unused variables
2000-08-19 15:25:05 +00:00
David Dykstra
ef5d23ebcd
Add --bwlimit option contributed by Matthew Demicco and Jamie Gritton.
2000-06-06 21:13:05 +00:00
Andrew Tridgell
0adb99b9dc
don't pprint the IO timeout message if we are a server or daemon (can
...
cause recursive error messages)
2000-04-09 02:32:18 +00:00
Andrew Tridgell
f0359dd00d
went back to non-blokcing IO
...
it looks like ssh is willing to accept a non-blocking fd when used as
a transport, this seems to avoid the Solaris socketpair bug
2000-03-30 14:15:00 +00:00
Andrew Tridgell
8b35435f7c
another hang-at-end fix. It looks like we are more sensiitive to
...
these with socketpairs. The receiver now sleeps until it gets a signal
to tell it to exit
also fixed test.sh to use the current version remotely
2000-01-30 00:50:19 +00:00
Andrew Tridgell
6d7b6081ac
damn!
...
the last pre-release had a bug that didn't setup the multiplexing
correctly. This means that pre-release will get "unexpected tag -7"
whenm talking to the fixed code.
2000-01-29 04:50:01 +00:00
Andrew Tridgell
b2999e457f
don't need PIPE_BUF any more
2000-01-29 02:56:36 +00:00
Andrew Tridgell
0f3203c312
fixed some logcode warnings
2000-01-29 02:49:03 +00:00
Andrew Tridgell
ff41a59f58
- switched on multiplexing for all connections, not just daemon
...
connections (this fixes the stderr/stdout problem). Upped
protocol version for backward compat
- use multiplexing on error fd
- upped minimal protocol version
- got rid of some ugly code in the write buffering
2000-01-28 15:29:59 +00:00
Andrew Tridgell
08f15335b5
switch to using socketpair instead of pipe if possible. This fixes the
...
ssh clag problems as long as you also fix the same problem in sshd
removed all the old read buffering code from io.c as this was only
there to try to reduce the chance of clagging up sshd.
2000-01-28 12:37:58 +00:00
Andrew Tridgell
cbce490e13
reinstated the MAX_READ_BUFFER code. Its a nasty tradeoff - using lots
...
of memory vs. ssh bugs. uggh.
2000-01-24 12:23:39 +00:00
Andrew Tridgell
8a5d6bba09
don't use stderr after we become a daemon
2000-01-24 09:19:44 +00:00
Andrew Tridgell
554e0a8dd0
added some really ugly code to allow errors to propogate to
...
clients when writing to a rsync server
it works like this:
- we have an extra pipe from the receiver to the generator
- the server always runs with multiplexing on
- errors from the generator go down the multiplexed connection
- errors from the receiver go over the pipe, and from there to
the multiplexed conn
it required some incredibly ugly code. damn.
2000-01-23 07:36:56 +00:00
Andrew Tridgell
5d1e1dcf4b
don't try to write errors to a dead socket
2000-01-23 01:11:43 +00:00
Andrew Tridgell
07b7c86c06
don't write more than PIPE_BUF bytes in any one write() in io.c
...
this makes sure that the write never blocks.
1999-11-23 08:43:16 +00:00
Andrew Tridgell
1f5c6343e6
removed old non-blocking fd code (a hangover from a earlier version of
...
io.c). Thanks to Theo for pointing out this brokenness.
1999-11-15 01:32:20 +00:00
Andrew Tridgell
37f9805dab
changed strlcat() and strlcpy() to have the same semantics as the
...
OpenBSD functions of the same name.
changed slprintf() to take buffer length rather than buffer length -1
1998-11-14 23:31:58 +00:00
Andrew Tridgell
654175798b
patch from Alberto Accomazzi <aaccomazzi@cfa.harvard.edu> to add
...
different exit codes for different conditions.
1998-11-03 07:08:27 +00:00
Andrew Tridgell
1b7c47cb55
Jason told me that's its very important for his site to log exactly
...
how many bytes were needed to be transferred for each file. I added %b
and %c log format options to cover this. See the man page for details.
1998-11-02 04:17:56 +00:00
Andrew Tridgell
d730b113f4
final change needed to get rsync working on a CRAY J90
1998-10-29 05:48:11 +00:00
Andrew Tridgell
8de330a387
changes to get rsync working on a CRAY J90. This machine doesn't have
...
a 4 byte integer type (short is 8 bytes). I needed to use a new md4
implementation (I used the portable one I wrote for Samba).
1998-10-29 05:01:47 +00:00
Andrew Tridgell
6e4fb64e61
added finddead target, removed dead code and made some functions
...
static
1998-09-09 05:57:34 +00:00
Andrew Tridgell
2f9af90118
removed the limit on the read buffer size until I fully understand the
...
interactions with ssh. The old ssh freezes have shown up again and
some debugging (with help from James Welborn) showed that the cause
was the read buffer hitting maximum size. I think this means that ssh
must be misbehaving about blocking IO.
This change gets rid of the freezes at the expense of memory
usage. Where it would have frozen it uses more memory instead.
1998-08-27 05:07:52 +00:00
Andrew Tridgell
c46ded4621
I think I might havefinally fixed the rsync hanging bug. It was caused
...
by a read during an io_flush() triggered during a readfd(). A simple
logic bug in the io code :(
1998-07-20 05:36:25 +00:00