diff options
author | Jeremy Allison <jra@samba.org> | 2003-10-29 23:01:02 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-10-29 23:01:02 +0000 |
commit | 5a1515f453cf4bc2f013c8751336e403637875c8 (patch) | |
tree | 5a92f55ad3e78cb5fededa9ac7eb1ebe2c390abe /source3/smbd/server.c | |
parent | 5ca824a682bbcd9331f32935f9b423ae6d468816 (diff) | |
download | samba-5a1515f453cf4bc2f013c8751336e403637875c8.tar.gz samba-5a1515f453cf4bc2f013c8751336e403637875c8.tar.bz2 samba-5a1515f453cf4bc2f013c8751336e403637875c8.zip |
Janitor for tridge.
parameterise the listen backlog in smbd and make it larger by default. A backlog of 5 is way too small these days.
Jeremy.
(This used to be commit 58b8f673945ad114d056dd79f509c93ab42b96d1)
Diffstat (limited to 'source3/smbd/server.c')
-rw-r--r-- | source3/smbd/server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c index 8b890549ea..af39bcb757 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -250,7 +250,7 @@ static BOOL open_sockets_smbd(BOOL is_daemon, BOOL interactive, const char *smb_ set_socket_options(s,"SO_KEEPALIVE"); set_socket_options(s,user_socket_options); - if (listen(s, 5) == -1) { + if (listen(s, SMBD_LISTEN_BACKLOG) == -1) { DEBUG(0,("listen: %s\n",strerror(errno))); close(s); return False; @@ -286,7 +286,7 @@ static BOOL open_sockets_smbd(BOOL is_daemon, BOOL interactive, const char *smb_ set_socket_options(s,"SO_KEEPALIVE"); set_socket_options(s,user_socket_options); - if (listen(s, 5) == -1) { + if (listen(s, SMBD_LISTEN_BACKLOG) == -1) { DEBUG(0,("open_sockets_smbd: listen: %s\n", strerror(errno))); close(s); |