Displaying 5 results from an estimated 5 matches for "io_multiplexing_close".
2001 Aug 22
1
@RSYNC EXIT / @RSYNC EOF
..."%s: connection unexpectedly closed "
+ "(%.0f bytes read so far)\n",
+ RSYNC_NAME, (double)stats.total_read);
+
+ exit_cleanup (RERR_STREAMIO);
+ }
+}
-/*
+
+static void die_from_readerr (int err)
+{
+ /* this prevents us trying to write errors on a dead socket */
+ io_multiplexing_close();
+
+ rprintf(FERROR, "%s: read error: %s\n",
+ RSYNC_NAME, strerror (err));
+ exit_cleanup(RERR_STREAMIO);
+}
+
+
+/*!
* Read from a socket with IO timeout. return the number of bytes
* read. If no bytes can be read then exit, never return a number <= 0.
*
@@ -119,13 +163,...
2002 Jan 11
0
(patch) fix for spinning child processes in daemon mode
...ack in the same boat.
Does this look right? The rsync error handling is...complex, to say the
least.
--- io.c.~1.87.~ Sun Sep 9 00:42:09 2001
+++ io.c Fri Jan 11 02:20:52 2002
@@ -438,6 +438,8 @@
}
if (ret <= 0) {
+ /* Don't try to write errors back across the stream */
+ io_multiplexing_close();
rprintf(FERROR,
"error writing %d unbuffered bytes"
" - exiting: %s\n", len,
Index: main.c
===================================================================
RCS file: /cvsroot/rsync/main.c,v
retrieving revision 1.135
diff -u -u -r1.135 main.c
--- main.c 11...
2003 Sep 14
2
rsync error: error in rsync protocol data stream (code 12) at io.c(463)
Hi,
I'm having a problem rsyncing one file (since I signed it). It seems that
the content of a file is able to cause problems in the protocol.
building file list ...
28820 files to consider
apt/packages/avifile/
apt/packages/avifile/avifile-0.7.34-1.dag.rh90.i386.rpm
rsync: error writing 4 unbuffered bytes - exiting: Broken pipe
rsync error: error in rsync protocol data stream (code
2003 Apr 15
0
Patch for stderr logging
...ogfile);
} else {
syslog(priority, "%s", buf);
+ /*fprintf (stderr, "%s", buf);*/
}
}
diff -Nuar rsync-2.5.6/proto.h rsync-2.5.6.new/proto.h
--- rsync-2.5.6/proto.h Sun Jan 26 19:35:09 2003
+++ rsync-2.5.6.new/proto.h Sun Apr 13 22:04:56 2003
@@ -119,6 +119,8 @@
void io_multiplexing_close(void);
char *lp_motd_file(void);
char *lp_log_file(void);
+BOOL lp_log_timestamp(void);
+BOOL lp_log_pid(void);
char *lp_pid_file(void);
char *lp_socket_options(void);
int lp_syslog_facility(void);
diff -Nuar rsync-2.5.6/rsyncd.conf.5 rsync-2.5.6.new/rsyncd.conf.5
--- rsync-2.5.6/rsyncd.conf.5...
2003 Oct 03
2
Cygwin/rsync Hang Problem Testing Results
People of cygwin & rsync,
I recently attempted to get cygwin and rsync working to solve a
backup/mirroring need in my computer life. Well, as you might guess, I
ran into a little but of trouble.
Strangely enough, rsync seemed to be regularly hanging when I attempted
to do a "get" (sycronize a remote to a local dir). Well, considering I
want to automate this, that was not going