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

Owner: Nobody in particular
Requestors: larschri [...]

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


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/ Fri Apr 2 15:35:11 2004 +++ configd/IO/ 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 infrastructure.

Please report any issues with to