Instead of prepending to {wbuf} and preserving tmpio objects
and/or other coderefs, clobber it early since we don't keep
sockets after shutting down TLS. This ought to fix the `BUG:
ep_mod GLOB=GLOB(...): no such file or directory' (ENOENT)
errors on EPOLL_CTL_MOD when a client shuts down the connection
while serving large HTTPS responses.
$! != EAGAIN;
my $ev = PublicInbox::TLS::epollbit() or return ds_close($self);
epwait $sock, $ev | EPOLLONESHOT;
- unshift @{$self->{wbuf}}, \&shutdn_tls_step; # autovivifies
+ @{$self->{wbuf}} = (\&shutdn_tls_step); # autovivifies
}
# don't bother with shutdown($sock, 2), we don't fork+exec w/o CLOEXEC