]> git.ipfire.org Git - thirdparty/cups.git/commit
Fix delays printing to lpd when reserved ports are exhausted 741/head
authorBryan Mason <bmason@redhat.com>
Sat, 24 Jun 2023 19:31:23 +0000 (12:31 -0700)
committerBryan Mason <bmason@redhat.com>
Sat, 24 Jun 2023 19:31:23 +0000 (12:31 -0700)
commitd82c43db87ac421ad9830c77342ad68b1d4d20c3
tree3c8557460320df338c6482c4bbd4c053f613b0c4
parent63c8f7677d0647202e8ab0c660a21f1d73319743
Fix delays printing to lpd when reserved ports are exhausted

cups_rresvport() doesn't reserve ports less than 512; however,
lpd_queue() continues decrementing the port number to 0.  This leads
to delays of ~511 seconds once all ports between 512-1023 are
exhausted.  Even when ports become available, lpd_queue() still tries
calling cups_rresvport() with port numbers less than 512, waiting one
second between each call.
backend/lpd.c