From 1af8ec12c95028cb1c72a8e85b538ab435d5145d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 4 Jul 2021 19:35:54 +0000 Subject: [PATCH] lei: drop workers on EOF from clients Sometimes a user will be bored waiting for a command to finish, so ensure we drop disconnect workers in this case. --- lib/PublicInbox/LEI.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm index 42e02efb..a9f5edae 100644 --- a/lib/PublicInbox/LEI.pm +++ b/lib/PublicInbox/LEI.pm @@ -1095,6 +1095,7 @@ sub event_step { } die "unrecognized client signal: $buf"; } + _drop_wq($self); # EOF, client disconnected dclose($self); }; if (my $err = $@) { -- 2.48.1