unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
* [PATCH] lei: drop workers on EOF from clients
@ 2021-07-04 19:35 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2021-07-04 19:35 UTC (permalink / raw)
  To: meta

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 = $@) {

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-04 19:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-04 19:35 [PATCH] lei: drop workers on EOF from clients Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).