diff --git a/src/chat/server/main.c b/src/chat/server/main.c index fdf8ab2..57803a4 100644 --- a/src/chat/server/main.c +++ b/src/chat/server/main.c @@ -41,7 +41,7 @@ int main(void) if (bind(listen_socket, (SA *) &server_addr, sizeof(server_addr)) < 0) why2_die("Failed binding socket."); //LISTEN - if (listen(listen_socket, 1) < 0) why2_die("Binding failed."); + if (listen(listen_socket, MAX_CONNECTIONS) < 0) why2_die("Binding failed."); //LOOP ACCEPT for (;;)