Skip Menu |
 

This queue is for tickets about the IO-Multiplex CPAN distribution.

Report information
The Basics
Id: 5885
Status: resolved
Priority: 0/
Queue: IO-Multiplex

People
Owner: Nobody in particular
Requestors: larschri [...] pvv.ntnu.no
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)

Attachments


Subject: Calling close() from mux_outbuffer_empty
Download (untitled) / with headers
text/plain 265b
There seems to be a bug in IO::Multiplex when trying to call close() inside a mux_outbuffer_empty function. The call removes the filehandle, but it is readded (unintentionally, I beleive), inside the loop in IO::Multiplex. The attached patch file fixes the problem.
Download Multiplex.patch
text/x-diff 565b
--- configd/IO/Multiplex2.pl Fri Apr 2 15:35:11 2004 +++ configd/IO/Multiplex.pm Thu Apr 1 19:19:31 2004 @@ -703,7 +703,9 @@ $obj->mux_outbuffer_empty($self, $fh) if ($obj && $obj->can("mux_outbuffer_empty")); - if ($self->{_fhs}{"$fh"}{shutdown}) { + if ($self->{_fhs}{"$fh"} + && $self->{_fhs}{"$fh"}{shutdown}) + { # If we've been marked for shutdown after write # do it. shutdown($fh, 1);
Thanks, included in 1.11, to be released soon.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.