From: Vasilis Liaskovitis Date: Wed, 1 Mar 2023 12:46:28 +0000 (+0100) Subject: cups/http-addr.c: Set listen backlog size to INT_MAX (fixes #308) X-Git-Tag: v2.4.3~44^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F626%2Fhead;p=thirdparty%2Fcups.git cups/http-addr.c: Set listen backlog size to INT_MAX (fixes #308) Use a listen queue size of INT_MAX, which should default to the maximum supported queue size on the system. This avoids the problem of the listening backlog queue getting full when there are too many requests at the same time. The problem was observed with the previous backlog size (128) by customers when submitting large batches of print jobs, resulting in some jobs getting lost. Signed-off-by: Vasilis Liaskovitis --- diff --git a/cups/http-addr.c b/cups/http-addr.c index a61ee04490..6aeeb80748 100644 --- a/cups/http-addr.c +++ b/cups/http-addr.c @@ -249,7 +249,7 @@ httpAddrListen(http_addr_t *addr, /* I - Address to bind to */ * Listen... */ - if (listen(fd, 128)) + if (listen(fd, INT_MAX)) { _cupsSetHTTPError(HTTP_STATUS_ERROR);