about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiSelfSocket.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/LeiSelfSocket.pm')
-rw-r--r--lib/PublicInbox/LeiSelfSocket.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/LeiSelfSocket.pm b/lib/PublicInbox/LeiSelfSocket.pm
index dd64b6cf..860020cb 100644
--- a/lib/PublicInbox/LeiSelfSocket.pm
+++ b/lib/PublicInbox/LeiSelfSocket.pm
@@ -29,6 +29,7 @@ sub event_step {
         if (scalar(@fds) == 1 && !defined($fds[0])) {
                 return if $!{EAGAIN};
                 die "recvmsg: $!" unless $!{ECONNRESET};
+                $buf = '';
         } else { # just in case open so perl can auto-close them:
                 for (@fds) { open my $fh, '+<&=', $_ };
         }