diff options
author | Wayne Davison <wayned@samba.org> | 2011-01-03 19:42:27 -0800 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2011-01-03 19:42:27 -0800 |
commit | 050e5334d8eb98b3b851bdeb4e174d2afc53b795 (patch) | |
tree | 9ab5640437a01d28706a56ecb7971bab05c480b0 /socket.c | |
parent | bf4170ade8858608fbb7191eabaab996d61ba47e (diff) | |
download | rsync-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |