X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=blobdiff_plain;f=lib%2FPublicInbox%2FLeiSelfSocket.pm;h=860020cb9e683db18a93e7904ee8d43d0cac4f98;hp=dd64b6cfd491f4b4517a18a321c2cd0cf826a38d;hb=6b52fe53a1f9e69a6ecfce16216a1fa180e4645f;hpb=9f4279438bec8d0b52c8afc513142cc9d21ad8b8 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, '+<&=', $_ }; }