Article View: linux.debian.bugs.dist
Article #5049Bug#1154428: libapr1t64: Backport fix for Unix socket timeouts above 2147 seconds
From: p.misc
Date: Thu, 19 Nov 2026 05:20
Date: Thu, 19 Nov 2026 05:20
32 lines
2962 bytes
2962 bytes
Package: libapr1t64 Version: 1.7.5-1 Severity: normal Forwarded: https://bz.apache.org/bugzilla/show_bug.cgi?id=69542 Could you backport the upstream fix for APR bug #69542 to Trixie and apply it to unstable while it still ships APR 1.7.6? In support/unix/waitio.c, the poll() path in apr_wait_for_io_or_timeout() stores a 64-bit timeout in microseconds in a signed 32-bit int before converting it to milliseconds. A socket timeout of 2148 seconds exceeds INT32_MAX at that assignment, so poll() receives an incorrect timeout. This affects long Apache reverse-proxy timeouts, including AJP backends. Our AJP configuration uses this workaround: ProxyPass / ajp://127.0.0.1:8009/ retry=0 timeout=2147 The expected behaviour is for a configured timeout of 2148 seconds or more to be honoured. The workaround caps it at 2147 seconds, the largest whole-second value that fits before conversion. The affected code is present in Trixie's apr 1.7.5-1 and in Forky/Sid's apr 1.7.6-3. Bookworm's 1.7.2 divides by 1000 before assigning to the int and predates the regression. Upstream has already backported the fix to its 1.7.x branch and lists it for APR 1.7.7. The backport is commit: https://github.com/apache/apr/commit/5140fe6815a0a440ac822d85ddae87f9fd3835dd Thanks.
Technical Details
Message-ID:
<O12IV-cPe3-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: p.misc@rimuhosting.com Newsgroups: linux.debian.bugs.dist Subject: Bug#1154428: libapr1t64: Backport fix for Unix socket timeouts above 2147 seconds Date: Thu, 19 Nov 2026 06:20:01 +0100 Message-ID: <O12IV-cPe3-1@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Thu Nov 19 05:11:07 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.451 Reply-To: p.misc@rimuhosting.com, 1154428@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-apache@lists.debian.org X-Debian-Pr-Message: report 1154428 X-Debian-Pr-Package: libapr1t64 X-Debian-Pr-Source: apr Dkim-Filter: OpenDKIM Filter v2.11.0 mail-20028113.25mail.st 236A287F MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Status: Clean X-Greylist: delayed 418 seconds by postgrey-1.37 at buxtehude; Thu, 19 Nov 2026 05:09:39 UTC X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2003471 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 32 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 19 Nov 2026 18:02:35 +1300 X-Original-Message-ID: <b1a7971c-568d-4bf1-8bd3-65a0eb10ff67@rimuhosting.com>