/* Buffer size to use when printing backtraces */
#define BACKTRACE_STACK_SIZE 64
+/* size of listen() backlog in smbd */
+#define SMBD_LISTEN_BACKLOG 50
+
#endif
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;
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);