summaryrefslogtreecommitdiff
path: root/rsync.h
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2009-11-07 00:39:50 -0800
committerWayne Davison <wayned@samba.org>2009-11-07 01:22:11 -0800
commitf9185203ee03152001530db5624a2b8c93e1ea94 (patch)
tree8b1fb3dff27b0d87412a6739aba1f6de027a8e73 /rsync.h
parent84c11e85a4c4a12ecacba24afe9617222e4361e6 (diff)
downloadrsync-f9185203ee03152001530db5624a2b8c93e1ea94.tar.gz
rsync-f9185203ee03152001530db5624a2b8c93e1ea94.tar.bz2
rsync-f9185203ee03152001530db5624a2b8c93e1ea94.zip
Added notifications about error-exit values:
- The receiver notifies the generator if it is exiting with an error, and then, if it is a server, waits around for the generator to die. This ensures that the client side has time to read the error. - The generator or sender will notifiy the other side of the transfer of an error-exit value if protocol 31 is in effect. This will get rid of some "connection unexpectedly closed" errors that are really expected events due to a fatal exit on the other side.
Diffstat (limited to 'rsync.h')
-rw-r--r--rsync.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/rsync.h b/rsync.h
index 522ffc50..61f1c47c 100644
--- a/rsync.h
+++ b/rsync.h
@@ -98,7 +98,7 @@
/* This is used when working on a new protocol version in CVS, and should
* be a new non-zero value for each CVS change that affects the protocol.
* It must ALWAYS be 0 when the protocol goes final (and NEVER before)! */
-#define SUBPROTOCOL_VERSION 10
+#define SUBPROTOCOL_VERSION 11
/* We refuse to interoperate with versions that are not in this range.
* Note that we assume we'll work with later versions: the onus is on
@@ -233,6 +233,7 @@ enum msgcode {
MSG_IO_ERROR=22,/* the sending side had an I/O error */
MSG_IO_TIMEOUT=33,/* tell client about a daemon's timeout value */
MSG_NOOP=42, /* a do-nothing message */
+ MSG_ERROR_EXIT=86, /* used by siblings and by protocol-31 */
MSG_SUCCESS=100,/* successfully updated indicated flist index */
MSG_DELETED=101,/* successfully deleted a file on receiving side */
MSG_NO_SEND=102,/* sender failed to open a file we wanted */