]> git.ipfire.org Git - thirdparty/cups.git/commit
Fix delays in printing to lpd when reserved ports are exhausted (Issue #741)
authorzdohnal <zdohnal@redhat.com>
Mon, 26 Jun 2023 14:24:33 +0000 (16:24 +0200)
committerGitHub <noreply@github.com>
Mon, 26 Jun 2023 14:24:33 +0000 (16:24 +0200)
commit82c7b45c3b6b249516d0d482bfbe97fdc2ebc1db
tree3c8557460320df338c6482c4bbd4c053f613b0c4
parent63c8f7677d0647202e8ab0c660a21f1d73319743
parentd82c43db87ac421ad9830c77342ad68b1d4d20c3
Fix delays in printing to lpd when reserved ports are exhausted (Issue #741)

We use our internal implementation for BSD resvport() by default in LPD backend, which should act on port ranges 512 - 1023, however we didn't go back to the highest port number once we got under the lowest port number. This caused a delay 511s long until  `lpd_queue()` got the port number to 0, which triggered the assignment of the highest port number.

The highest port number is assigned right after we cross the lowest port number, which eliminates this kind of delay.

PR by Bryan Mason from Red Hat