Skip to content

Commit 876fdc1

Browse files
committed
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 <vliaskovitis@suse.com>
1 parent c973026 commit 876fdc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cups/http-addr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ httpAddrListen(http_addr_t *addr, /* I - Address to bind to */
249249
* Listen...
250250
*/
251251

252-
if (listen(fd, 128))
252+
if (listen(fd, INT_MAX))
253253
{
254254
_cupsSetHTTPError(HTTP_STATUS_ERROR);
255255

0 commit comments

Comments
 (0)