Displaying 8 results from an estimated 8 matches for "rerr_socketio".
2003 Jun 27
5
PATCH/RFC: Another stab at the Cygwin hang problem
...5:30:09 2003
***************
*** 390,395 ****
--- 390,396 ----
int status=0;
int recv_pipe[2];
int error_pipe[2];
+ int cleanup_pipe[2];
extern int preserve_hard_links;
extern int delete_after;
extern int recurse;
***************
*** 416,426 ****
--- 417,435 ----
exit_cleanup(RERR_SOCKETIO);
}
+ if (pipe(cleanup_pipe) < 0) {
+ rprintf(FERROR,"cleanup pipe failed in do_recv\n");
+ exit_cleanup(RERR_SOCKETIO);
+ }
+
io_flush();
if ((pid=do_fork()) == 0) {
+ char tmp;
+
close(recv_pipe[0]);
close(error_pipe[0]);
+ close(cleanup_pipe[1]...
2003 Mar 05
0
"rsync --daemon" and IPv4/v6 dual stack
...(s == -1)
+ memset(&hints, 0, sizeof(hints));
+ hints.ai_family = default_af_hint;
+ hints.ai_socktype = SOCK_STREAM;
+ hints.ai_flags = AI_PASSIVE;
+ snprintf(portstr, sizeof(portstr), "%d", port);
+ if (getaddrinfo(bind_address, portstr, &hints, &res0) != 0)
exit_cleanup(RERR_SOCKETIO);
- /* ready to listen */
- if (listen(s, 5) == -1) {
- close(s);
- exit_cleanup(RERR_SOCKETIO);
+ /* open an incoming socket */
+ for (res = res0; res; res = res->ai_next) {
+ if (nsock >= sizeof(s) / sizeof(s[0]))
+ break;
+ s[nsock] = open_socket_in(res);
+ if (s[nsock] == -1)
+...
2003 Oct 25
1
Trivial documentation patch
...PPORTED 4)) Requested action not supported: an attempt
was made to manipulate 64-bit files on a platform that cannot support
them; or an option was speciifed that is supported by the client and
not by the server.
+dit(bf(RERR_STARTCLIENT 5)) Error starting client-server protocol
+
dit(bf(RERR_SOCKETIO 10)) Error in socket IO
dit(bf(RERR_FILEIO 11)) Error in file IO
dit(bf(RERR_STREAMIO 12)) Error in rsync protocol data stream
@@ -1126,6 +1128,7 @@
dit(bf(RERR_SIGNAL 20)) Received SIGUSR1 or SIGINT
dit(bf(RERR_WAITCHILD 21)) Some error returned by wai...
2001 Dec 03
0
Socket address problems with 2.5.1pre1
...nt length = sizeof(ss);
static char addr_buf[100];
static int initialised;
@@ -564,11 +564,14 @@
initialised = 1;
- if (getpeername(fd, &ss, &length)) {
+ if (getpeername(fd, (struct sockaddr *)&ss, &length)) {
exit_cleanup(RERR_SOCKETIO);
}
- getnameinfo(&ss, length,
+ syslog(LOG_INFO, "length %d, sizes: sockaddr %u, sockaddr_storage %u",
+ length, sizeof (struct sockaddr), sizeof (struct sockaddr_storage));
+
+ getnameinfo((struct sockaddr *)&ss, length,...
2005 Nov 01
2
request: add TCP buffer options to rsync CLI?
Dear rsync folks,
I'd like to request/suggest that cli options to set TCP send/receive buffers
be added to rsync client-side.
Summary:
I'm aware that a daemon's config-file can set socket options for
the server side
(e.g. SO_SNDBUF, SO_RCVBUF). That is useful.
But when trying to get high-throughput rsync over
long paths (i.e. large bandwidth*delay product), since
2006 Mar 04
2
rsync backup not working
I'm using rsync 2.63 on a NetWare 6.5 server backing up various volumes to a SLES 9 server.
My script that I'm using on the NW server is:
# Rsync synchronisation of APPS
rsync -rRutzvP --volume=apps: ./ 192.168.1.252::SCA/apps
# Rsync synchronisation of DATA
rsync -rRutzvP --volume=Data: ./ 192.168.1.252::SCA/Data
# Rsync synchronisation ofGWMAIL
rsync -rRutzvP --volume=GWMAIL: ./
2003 Jun 07
1
patch to rsync to add options for pre- and post-transfer commands
...-transfer script: %s\n", postscript);
+ }
+
+ return(run_xfer_script(postscript, flist, "post-transfer"));
+ }
+
+
static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name)
{
int pid;
***************
*** 416,421 ****
--- 513,522 ----
exit_cleanup(RERR_SOCKETIO);
}
+ if (run_prescript(flist) != 0) {
+ exit_cleanup(RERR_PRESCRIPT);
+ }
+
io_flush();
if ((pid=do_fork()) == 0) {
***************
*** 464,469 ****
--- 565,575 ----
io_set_error_fd(-1);
kill(pid, SIGUSR2);
wait_process(pid, &status);
+
+ if (run_postscript(fli...
2001 Nov 20
2
rsync server over SSH [includes code patches]
...tart with a module name\n");
return -1;
***************
*** 55,68 ****
*p = 0;
}
- if (!user) user = getenv("USER");
- if (!user) user = getenv("LOGNAME");
-
fd = open_socket_out(host, rsync_port, &socket_address);
if (fd == -1) {
exit_cleanup(RERR_SOCKETIO);
}
server_options(sargs,&sargc);
sargs[sargc++] = ".";
--- 49,95 ----
*p = 0;
}
fd = open_socket_out(host, rsync_port, &socket_address);
if (fd == -1) {
exit_cleanup(RERR_SOCKETIO);
}
+ ret = start_inband_exchange(user, path, fd, fd, ar...