Commit | Line | Data |
---|---|---|
6c034639 | 1 | --- a/src/lib/httpd.c |
2 | +++ b/src/lib/httpd.c | |
3 | @@ -237,7 +237,8 @@ struct httpd_s { | |
4 | continue; | |
5 | } | |
6 | } | |
7 | - if (httpd->server_fd6 != -1 && FD_ISSET(httpd->server_fd6, &rfds)) { | |
8 | + if (httpd->open_connections < httpd->max_connections && | |
9 | + httpd->server_fd6 != -1 && FD_ISSET(httpd->server_fd6, &rfds)) { | |
10 | ret = httpd_accept_connection(httpd, httpd->server_fd6, 1); | |
11 | if (ret == -1) { | |
12 | break; | |
13 |