X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/bd37c6663080198fc8ba60a50f3ccfe11b09fe69..b73b51a9e4a196dc352c3336064bcc21f82797e9:/socket.c diff --git a/socket.c b/socket.c index c4420ba7..ccc79cfe 100644 --- a/socket.c +++ b/socket.c @@ -182,6 +182,10 @@ int open_socket_out(char *host, int port, const char *bind_address, *cp++ = '\0'; strcpy(portbuf, cp); h = buffer; + if (verbose >= 2) { + rprintf(FINFO, "connection via http proxy %s port %s\n", + h, portbuf); + } } else { snprintf(portbuf, sizeof(portbuf), "%d", port); h = host; @@ -436,6 +440,7 @@ void start_accept_loop(int port, int (*fn)(int )) * accept again. */ sleep(2); } else { + /* Parent doesn't need this fd anymore. */ close(fd); } }