htparser: Increased listen backlog a lot.
authorFredrik Tolf <fredrik@seatribe.se>
Thu, 17 Mar 2011 20:16:11 +0000 (21:16 +0100)
committerFredrik Tolf <fredrik@seatribe.se>
Thu, 17 Mar 2011 20:16:11 +0000 (21:16 +0100)
src/plaintcp.c

index 321be41..b898e37 100644 (file)
@@ -65,7 +65,7 @@ int listensock4(int port)
        close(fd);
        return(-1);
     }
-    if(listen(fd, 16) < 0) {
+    if(listen(fd, 128) < 0) {
        close(fd);
        return(-1);
     }
@@ -90,7 +90,7 @@ int listensock6(int port)
        close(fd);
        return(-1);
     }
-    if(listen(fd, 16) < 0) {
+    if(listen(fd, 128) < 0) {
        close(fd);
        return(-1);
     }