]> Sergey Matveev's repositories - public-inbox.git/commit
httpd/async: do not needlessly weaken
authorEric Wong <e@80x24.org>
Fri, 27 May 2016 07:23:18 +0000 (07:23 +0000)
committerEric Wong <e@80x24.org>
Fri, 27 May 2016 07:27:43 +0000 (07:27 +0000)
commitaa4e04c633ee857cb372d7e55c545d7a7b29d2eb
tree74aff8f2c45fcc29b31a50471590732998c5ed37
parent79e11eea11dd561301a05c42ba824a7d352bd398
httpd/async: do not needlessly weaken

The restart_read callback has no chance of circular reference,
and weakening $self before we create it can cause $self to
be undefined inside the callback (seen during stress testing).

Fixes: 395406118cb2 ("httpd/async: prevent circular reference")
lib/PublicInbox/HTTPD/Async.pm