From: zdohnal Date: Mon, 26 Jun 2023 14:24:33 +0000 (+0200) Subject: Fix delays in printing to lpd when reserved ports are exhausted (Issue #741) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82c7b45c3b6b249516d0d482bfbe97fdc2ebc1db;p=thirdparty%2Fcups.git 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 --- 82c7b45c3b6b249516d0d482bfbe97fdc2ebc1db