| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
get from the receiver.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
- Improved the SIZEOF_INT64 checking code in write_longint().
|
| |
|
|
| |
- Added explicit char-casting to new long-int code.
|
| |
|
|
|
|
|
|
|
|
|
| |
be needed, but it at least works right now).
- Improved the transmission of 32-bit negative numbers on systems
where the 32-bit type is larger than 32 bits.
- Changed the sending of 64-bit numbers for protocol 30: we send
them in MSB-first order with the number of bytes used in the
transmission encoded into the earliest bits. This lets us save
transmitted bytes for both small and large numbers. The new
method sends from 3 to 9 bytes, the old sent either 4 or 12.
|
| | |
|
| | |
|
| |
|
|
| |
by Hugh Daschbach.
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
sometimes calling io_multiplex_write()/rwrite() or msg_list_add().
This simplifies the code that does the defer_forwarding_messages
checking because it can now be done in just one place, in send_msg()
(because rwrite() also calls send_msg() now when forwarding a msg).
|
| | |
|
| |
|
|
|
| |
not being forwarded from the generator to the sender using rwrite()
(and MSG_LOG messages didn't need to be deferred at all).
|
| | |
|
| |
|
|
|
|
|
| |
- Standardized the format of the opening comment, including adding a
brief description of what's in the file for those that lacked it.
- Added some missing copyright lines.
- Some minor whitespace tweaks (in a few of the files).
|
| |
|
|
|
|
|
| |
variables. In the future it might be useful to get rsync to
mention what kind of a message it was trying to write, but the
'phase "unknown"' output was ubiquitous and confusing.
- Got rid of the completely unused write_int_named() function.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
integral part of the structure instead of pointer to a
separately allocated buffer.
- Improved the code that was ensuring that no messages from the
receiver could be merged into the middle of a partially written
buffer from the generator. The new code ensures that we never
avoid reading the messages from the receiver (like we used to).
This ensures that the generator will not hang when the receiver
got a read error on the socket, sent us a message about it, but
the socket in the generator never becomes writable for it to get
a similar error (now we are assured of getting the receiver's
note about their read error, and we know to shut things down).
|
| |
|
|
| |
with an error.
|
| | |
|
| |
|
|
|
| |
This fixes a bug with option errors not getting reported because the
write code gets called with bwlimit != 0 and bwlimit_writemax == 0.
|
| | |
|
| |
|
|
|
|
| |
allows the generator to ask us to limit the number of files that
are currently active in the transfer when --remove-sent-files is
enabled.
|
| | |
|
| |
|
|
|
|
|
| |
code instead of a normal FERROR. The generator is the only
process that will receive this, and it uses it to close down
the multi-I/O over the socket so that it won't ever hang trying
to write an error down a dead socket.
|
| | |
|
| | |
|
| |
|
|
| |
are contained by a structure.
|
| | |
|
| |
|
|
|
| |
- If io_printf() tries to overflow the buffer, die with
an error instead of sending a truncated buffer.
|
| |
|
|
|
|
| |
variables when the timeout value changes.
- Split last_io into last_io_in and last_io_out.
- Made select_timeout static.
|
| |
|
|
|
| |
make certain that the static value is always set correctly anytime
we call out to another function.
|
| |
|
|
| |
back when the generator had a writeable pipe to the receiver.
|
| |
|
|
| |
- Always maintain the last_io value for the generator.
|
| |
|
|
|
|
| |
enough to handle long-filename messages on a system that has a
really short MAXPATHLEN value. Also, make it large enough to
be able to comment on a MAXPATHLEN filename.
|
| |
|
|
| |
variable when we're ignoring msg_fd_in.
|
| |
|
|
| |
- Got rid of a flush kluge that was needed for the name-pipe.
|
| |
|
|
|
|
|
|
|
| |
- Added hlink_list, a FIFO list of finished hard-link items.
- Made get_redo_num() check for finished hard-link items and
call the generator when they are found. This ensures that
we finish all the hard-link items by the time the MSG_DONE
is read and returned to the generator.
- Added get_hlink_num() to read the new hlink_list.
|
| |
|
|
|
| |
generic flist_num_{push,pop}() functions that can support other
folks caching off file-list index numbers.
|
| |
|
|
| |
having this code in generator.c and receiver.c.
|
| |
|
|
|
|
|
|
|
|
| |
only needed back when the generator was reading a separate redo
pipe from the message pipe.
- Fixed a potential data corruption in the data that the generator
is sending: if a message comes in from the receiver, we now make
sure that we can't put the forwarding of this message to the sender
into the middle of a multiplexed-write record that the generator
is trying to flush.
|
| | |
|
| |
|
|
|
|
| |
at EOF -- it should be a rapidly arriving event, so only hang around
for 10 seconds, max., and then go ahead and report the "unexpectedly
closed" error.
|
| | |
|