summaryrefslogtreecommitdiff
path: root/socket.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2011-01-03 19:42:27 -0800
committerWayne Davison <wayned@samba.org>2011-01-03 19:42:27 -0800
commit050e5334d8eb98b3b851bdeb4e174d2afc53b795 (patch)
tree9ab5640437a01d28706a56ecb7971bab05c480b0 /socket.c
parentbf4170ade8858608fbb7191eabaab996d61ba47e (diff)
downloadrsync-050e5334d8eb98b3b851bdeb4e174d2afc53b795.tar.gz
rsync-050e5334d8eb98b3b851bdeb4e174d2afc53b795.tar.bz2
rsync-050e5334d8eb98b3b851bdeb4e174d2afc53b795.zip
Added "listen backlog" daemon config paramater.
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/socket.c b/socket.c
index 81629743..c19412d2 100644
--- a/socket.c
+++ b/socket.c
@@ -546,7 +546,7 @@ void start_accept_loop(int port, int (*fn)(int, int))
/* ready to listen */
FD_ZERO(&deffds);
for (i = 0, maxfd = -1; sp[i] >= 0; i++) {
- if (listen(sp[i], 5) < 0) {
+ if (listen(sp[i], lp_listen_backlog()) < 0) {
rsyserr(FERROR, errno, "listen() on socket failed");
#ifdef INET6
if (errno == EADDRINUSE && i > 0) {