search for: io_multiplex_writ

Displaying 11 results from an estimated 11 matches for "io_multiplex_writ".

Did you mean: io_multiplex_write
2002 Jul 02
1
Rsync: Segmentation fault
Rsync 2.5.5; transfer via ssh; sparc-sun-solaris2.5 (Ultra 1); gcc 2.8.1. Every time rsync on this box causes boundary violation. I attached two strange examples. I have a few rsync's corefiles (100MB and above) and I can examine them. I will be grateful for any help. -Mirek <-------------------------------------------------------------------------> received 966761 names done
2002 May 06
1
Prevent infinite recursion in rwrite()
...gt;8--- Index: log.c --- log.c 2002/04/08 09:10:50 1.61 +++ log.c 2002/05/07 00:32:30 @@ -215,6 +215,7 @@ void rwrite(enum logcode code, char *buf, int len) { FILE *f=NULL; + static char semaphore = 0; extern int am_daemon; extern int am_server; extern int quiet; @@ -243,8 +244,11 @@ * io_multiplex_write can fail if we do not have a multiplexed * connection at the moment, in which case we fall through and * log locally instead. */ - if (am_server && io_multiplex_write(code, buf, len)) { - return; + if (am_server && (!semaphore++)) { + int ret = io_multiplex_write(code, buf,...
2004 Apr 27
1
No error messages in rsyncd log in 2.6.1pre-1
...This 2.6.1 code: if (am_server) { /* Pass it to non-server side, perhaps through our sibling. */ if (msg_fd_out >= 0) { send_msg((enum msgcode)code, buf, len); return; } if (io_multiplex_write((enum msgcode)code, buf, len)) return; } will send all errors to the client and none to the log when the daemon is the server. That code replaced this code in 2.6.0: /* first try to pass it off to our sibling */ if (am_server && log_error_...
2004 May 09
2
2.6.2 not displaying permissions errors on client side
Hello, Noticed this (bug?) while testing out rsync. For a little background, I need to push files real-time to some front-end servers, and I am thinking of switching from some custom shell scripts that do this job to rsync. I am thinking of running rsync as a daemon on the front-end servers, and doing an upload from the back-end server to push the data out as it comes in. So, here is the deal:
2002 Jan 13
0
rsynd-2.5.1 / io.c patches
...nt maxlen) +int read_line(int f, void *buf1, int maxlen) { +unsigned char * buf; + buf = (unsigned char *)buf1; while (maxlen) { buf[0] = 0; read_buf(f, buf, 1); @@ -664,7 +681,7 @@ } /* write an message to the multiplexed error stream */ -int io_multiplex_write(enum logcode code, char *buf, int len) +int io_multiplex_write(enum logcode code, const void *buf, int len) { if (!io_multiplexing_out) return 0;
2004 Dec 07
1
rsync hangs when tunneling... help!
...807d000) at main.c:861 #12 0x8050a8d in main (argc=2, argv=0x807d000) at main.c:1142 #13 0x804a069 in _start () server parent process: #0 0xff19db44 in _poll () from /usr/lib/libc.so.1 #1 0xff15236c in _select () from /usr/lib/libc.so.1 #2 0x00025ee8 in writefd_unbuffered () #3 0x00026f4c in io_multiplex_write () #4 0x0001ce6c in rwrite () #5 0x0001cfcc in rprintf () #6 0x00012ae0 in recv_generator () #7 0x000139fc in generate_files () #8 0x00019528 in do_recv () #9 0x000197f4 in start_server () #10 0x0002fec4 in start_daemon () #11 0x00030088 in daemon_main () #12 0x0001a52c in main () server...
2002 Sep 25
0
stack overflow
...24 #212345 0x8056e81 in writefd_unbuffered (fd=1, buf=0xbfbfe468 "A", len=69) at io.c:459 #212346 0x8056ff8 in mplex_write (fd=1, code=FERROR, buf=0xbfbff510 "rsync: connection unexpectedly closed (232684 bytes read so far)\n", len=65) at io.c:516 #212347 0x8057382 in io_multiplex_write (code=FERROR, buf=0xbfbff510 "rsync: connection unexpectedly closed (232684 bytes read so far)\n", len=65) at io.c:697 #212348 0x80521dc in rwrite (code=FERROR, buf=0xbfbff510 "rsync: connection unexpectedly closed (232684 bytes read so far)\n", len=65) at log.c:245...
2006 Sep 30
2
DO NOT REPLY [Bug 4139] New: Generator process (running as daemon) hangs after kill SIGINT.
...d402 in __kernel_vsyscall () #1 0x4748cddd in ___newselect_nocancel () from /lib/libc.so.6 #2 0x0806a397 in writefd_unbuffered (fd=0, buf=0xbfec9dfc "]", len=97) at io.c:1074 #3 0x080692e9 in mplex_write (code=Variable "code" is not available. ) at io.c:1169 #4 0x080693db in io_multiplex_write (code=MSG_ERROR, buf=0xbfecae88 "rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(260) [generator=2.6.8]\n", len=93) at io.c:1377 #5 0x0805c5b2 in rwrite (code=FERROR, buf=0xbfecae88 "rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c...
2002 Oct 13
1
rsync 2.5.5 core dump
...;) at log.c:324 #50 0x8056d85 in writefd_unbuffered (fd=1, buf=0xbfbfe45c "B", len=70) at io.c:459 #51 0x8056f08 in mplex_write (fd=1, code=FERROR, buf=0xbfbff504 "rsync: connection unexpectedly closed (2525941 bytes read so far)\n", len=66) at io.c:516 #52 0x805727a in io_multiplex_write (code=FERROR, buf=0xbfbff504 "rsync: connection unexpectedly closed (2525941 bytes read so far)\n", len=66) at io.c:697 #53 0x805217b in rwrite (code=FERROR, buf=0xbfbff504 "rsync: connection unexpectedly closed (2525941 bytes read so far)\n", len=66) at log.c:245 #54...
2004 Jan 17
1
--delete-sent-files (AKA --move-files)
...4 -0000 @@ -222,6 +222,14 @@ static void read_msg_fd(void) read_loop(fd, buf, 4); redo_list_add(IVAL(buf,0)); break; + case MSG_SUCCESS: + if (len != 4) { + rprintf(FERROR, "invalid message %d:%d\n", tag, len); + exit_cleanup(RERR_STREAMIO); + } + read_loop(fd, buf, 4); + io_multiplex_write(MSG_SUCCESS, buf, 4); + break; case MSG_INFO: case MSG_ERROR: case MSG_LOG: @@ -637,6 +645,16 @@ static int read_unbuffered(int fd, char } read_loop(fd, buffer, remaining); bufferIdx = 0; + break; + case MSG_SUCCESS: + if (remaining != 4) { + rprintf(FERROR, "inval...
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