]> Sergey Matveev's repositories - public-inbox.git/commit
http: remove weaken usage, reduce anonsub capture scope
authorEric Wong <e@80x24.org>
Wed, 4 Jan 2017 11:20:51 +0000 (11:20 +0000)
committerEric Wong <e@80x24.org>
Wed, 4 Jan 2017 16:12:08 +0000 (16:12 +0000)
commitf62f27ddd89720215e929af4ead2f97b750664b6
tree556cc049674187f15a9af15d9aa856eabf524222
parent950be11b15dcd1edee98caec80b445471971a55f
http: remove weaken usage, reduce anonsub capture scope

Avoiding weaken here is no more dangerous than the existing
circular refs (e.g. psgix.io) we create and manage throughout
the lifetime of the connection.  So, trust ourselves to maintain
the data structure properly and avoid triggering extra memory
usage.

While we're at it, avoid having anonymous subroutines capture
more variables than necessary to simplify reference auditing.
lib/PublicInbox/HTTP.pm