]> Sergey Matveev's repositories - public-inbox.git/commit
www: gzip_filter: gracefully handle socket ->write failures
authorEric Wong <e@80x24.org>
Wed, 3 Aug 2022 07:59:09 +0000 (07:59 +0000)
committerEric Wong <e@80x24.org>
Wed, 3 Aug 2022 19:57:35 +0000 (19:57 +0000)
commita6d50dc1098c01a1c3092a7f0f8aa154331600a3
tree9f851e465a79b039f82cf9733d4dd0437c13887c
parent86c6704a325c6701a1e47e04859b2c24e1e0fa65
www: gzip_filter: gracefully handle socket ->write failures

Socket ->write failures are expected and common for TCP traffic,
especially if it's facing unreliable remote connections.  So
just bail out silently if our {gz} field was already clobbered
during the small bit of recursion we hit on ->write failures
from async responses.

This ought to fix some GzipFilter::zflush errors (via $forward
->close from PublicInbox::HTTP) I've been noticing on
deployments running -netd.  I'm still unsure as to why I hadn't
seen them before, but it might've only been ignorance on my
part...

Link: https://public-inbox.org/meta/20220802065436.GA13935@dcvr/
lib/PublicInbox/GzipFilter.pm