Set the maximum number of concurrent web server connections by default to the maximum number of concurrent TCP connections.

This commit is contained in:
oliverschmidt 2010-04-11 20:54:39 +00:00
parent 7b5bde6336
commit eebbd2694c
2 changed files with 4 additions and 4 deletions

View file

@ -30,7 +30,7 @@
* *
* Author: Adam Dunkels <adam@sics.se> * Author: Adam Dunkels <adam@sics.se>
* *
* $Id: httpd-cfs.c,v 1.21 2010/04/11 19:18:47 oliverschmidt Exp $ * $Id: httpd-cfs.c,v 1.22 2010/04/11 20:54:39 oliverschmidt Exp $
*/ */
#include <stdio.h> #include <stdio.h>
@ -50,7 +50,7 @@ int snprintf(char *str, size_t size, const char *format, ...);
#include "httpd-cfs.h" #include "httpd-cfs.h"
#ifndef WEBSERVER_CONF_CFS_CONNS #ifndef WEBSERVER_CONF_CFS_CONNS
#define CONNS 4 #define CONNS UIP_CONNS
#else /* WEBSERVER_CONF_CFS_CONNS */ #else /* WEBSERVER_CONF_CFS_CONNS */
#define CONNS WEBSERVER_CONF_CFS_CONNS #define CONNS WEBSERVER_CONF_CFS_CONNS
#endif /* WEBSERVER_CONF_CFS_CONNS */ #endif /* WEBSERVER_CONF_CFS_CONNS */

View file

@ -30,7 +30,7 @@
* *
* Author: Adam Dunkels <adam@sics.se> * Author: Adam Dunkels <adam@sics.se>
* *
* $Id: httpd.c,v 1.17 2010/04/06 20:41:42 oliverschmidt Exp $ * $Id: httpd.c,v 1.18 2010/04/11 20:54:39 oliverschmidt Exp $
*/ */
#include <stdio.h> #include <stdio.h>
@ -47,7 +47,7 @@
#include "httpd.h" #include "httpd.h"
#ifndef WEBSERVER_CONF_CGI_CONNS #ifndef WEBSERVER_CONF_CGI_CONNS
#define CONNS 4 #define CONNS UIP_CONNS
#else /* WEBSERVER_CONF_CGI_CONNS */ #else /* WEBSERVER_CONF_CGI_CONNS */
#define CONNS WEBSERVER_CONF_CGI_CONNS #define CONNS WEBSERVER_CONF_CGI_CONNS
#endif /* WEBSERVER_CONF_CGI_CONNS */ #endif /* WEBSERVER_CONF_CGI_CONNS */