]> Sergey Matveev's repositories - public-inbox.git/commit
www: gzip_filter: avoid errors after ->write failure
authorEric Wong <e@80x24.org>
Thu, 4 Aug 2022 20:08:21 +0000 (20:08 +0000)
committerEric Wong <e@80x24.org>
Thu, 4 Aug 2022 20:09:53 +0000 (20:09 +0000)
commit27876bd1269d18f697847a724a8465318cb3cd67
tree833993eb452da25824107eea11916fa1893a176b
parentc5c508f3094ffe7ef4a52f8c471340fe8992f6bb
www: gzip_filter: avoid errors after ->write failure

->zflush must return a string to its caller, not undef.
Additionally, {http_out} may be deleted on ->write if ->close
recurses.

This should fix the following errors:
  Use of uninitialized value $_[1] in string eq at PublicInbox/HTTP.pm line 211.
  E: Can't call method "close" on an undefined value at GzipFilter.pm line 167.

Fixes: a6d50dc1098c01a1 (www: gzip_filter: gracefully handle socket ->write failures, 2022-08-03)
lib/PublicInbox/GzipFilter.pm