X-Git-Url: https://git.piment-noir.org/?p=deb_shairplay.git;a=blobdiff_plain;f=src%2Flib%2Fhttpd.c;h=f081c5e65cc74eb4c10f8ac7ad2818a50cffc73f;hp=1d9e7e2eb454334efec4f6e7ba106a7f9c9104a7;hb=ac9240fa569df5a10d534a4cd45740a44ee00f63;hpb=590c2b20db01a0568d8f6dab2e25037a069faab5 diff --git a/src/lib/httpd.c b/src/lib/httpd.c index 1d9e7e2..f081c5e 100644 --- a/src/lib/httpd.c +++ b/src/lib/httpd.c @@ -237,7 +237,8 @@ httpd_thread(void *arg) continue; } } - if (httpd->server_fd6 != -1 && FD_ISSET(httpd->server_fd6, &rfds)) { + if (httpd->open_connections < httpd->max_connections && + httpd->server_fd6 != -1 && FD_ISSET(httpd->server_fd6, &rfds)) { ret = httpd_accept_connection(httpd, httpd->server_fd6, 1); if (ret == -1) { break;