comparison src/c/http.c @ 1914:6a2cc604a322

In HTTP protocol C code, increase listening socket backlog to maximum
author Adam Chlipala <adam@chlipala.net>
date Wed, 27 Nov 2013 08:59:57 -0500
parents 3d922a28370b
children 52e88e139b25
comparison
equal deleted inserted replaced
1913:d67e043d3f0d 1914:6a2cc604a322
17 #include "request.h" 17 #include "request.h"
18 #include "queue.h" 18 #include "queue.h"
19 19
20 extern uw_app uw_application; 20 extern uw_app uw_application;
21 21
22 int uw_backlog = 10; 22 int uw_backlog = SOMAXCONN;
23 23
24 static char *get_header(void *data, const char *h) { 24 static char *get_header(void *data, const char *h) {
25 char *s = data; 25 char *s = data;
26 int len = strlen(h); 26 int len = strlen(h);
27 char *p; 27 char *p;