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

Report information
The Basics
Id:
67458
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
g.russell [...] napier.ac.uk
Cc:
AdminCc:

BugTracker
Severity:
Critical
Broken in:
1.12
Fixed in:
(no value)



Subject: Writer ignores outbuffer set to "0"
Hi. First I just want to say excellent utility if you write the number 0, eg "0", then it does not get sent until the buffer has at least 2 characters in it. Line 691 has: unless ($self->{_fhs}{"$fh"}{outbuffer}) { This is I think a bug, and should be: unless (length($self->{_fhs}{"$fh"}{outbuffer})>0) { This fix works for me in any case. I hope thats useful GOrdon.
Subject: Re: [rt.cpan.org #67458] Writer ignores outbuffer set to "0"
Date: Thu, 14 Apr 2011 17:56:25 -0600
To: bug-IO-Multiplex@rt.cpan.org
From: Rob Brown <bbb@cpan.org>
Thanks, but that might spew warnings if {outbuffer} is undef.


On Thu, Apr 14, 2011 at 5:09 AM, Gordon Russell via RT <bug-IO-Multiplex@rt.cpan.org> wrote:
Show quoted text
Thu Apr 14 07:09:20 2011: Request 67458 was acted upon.
Transaction: Ticket created by drgrussell
      Queue: IO-Multiplex
    Subject: Writer ignores outbuffer set to "0"
  Broken in: 1.12
   Severity: Critical
      Owner: Nobody
 Requestors: g.russell@napier.ac.uk
     Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=67458 >


Hi. First I just want to say excellent utility

if you write the number 0, eg "0", then it does not get sent until the
buffer has at least 2 characters in it.

Line 691 has:
 unless ($self->{_fhs}{"$fh"}{outbuffer}) {

This is I think a bug, and should be:
 unless (length($self->{_fhs}{"$fh"}{outbuffer})>0) {

This fix works for me in any case.
I hope thats useful
GOrdon.


Subject: Re: [rt.cpan.org #67458] Writer ignores outbuffer set to "0"
Date: Fri, 15 Apr 2011 08:43:26 +0200
To: Rob Brown via RT <bug-IO-Multiplex@rt.cpan.org>
From: NLnet webmaster <webmaster@nlnet.nl>
* Rob Brown via RT (bug-IO-Multiplex@rt.cpan.org) [110414 23:56]:
Show quoted text
> Queue: IO-Multiplex > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=67458 > > > Thanks, but that might spew warnings if {outbuffer} is undef.
Outbuffer always exists (since last version) to be able to remove a large number of tests. There where more places with that problem and apparently one was forgotten to be fixed. Fix released as 1.13
Show quoted text
> On Thu, Apr 14, 2011 at 5:09 AM, Gordon Russell via RT < > bug-IO-Multiplex@rt.cpan.org> wrote: >
> > Thu Apr 14 07:09:20 2011: Request 67458 was acted upon. > > Transaction: Ticket created by drgrussell > > Queue: IO-Multiplex > > Subject: Writer ignores outbuffer set to "0" > > Broken in: 1.12 > > Severity: Critical > > Owner: Nobody > > Requestors: g.russell@napier.ac.uk > > Status: new > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=67458 > > > > > > > Hi. First I just want to say excellent utility > > > > if you write the number 0, eg "0", then it does not get sent until the > > buffer has at least 2 characters in it. > > > > Line 691 has: > > unless ($self->{_fhs}{"$fh"}{outbuffer}) { > > > > This is I think a bug, and should be: > > unless (length($self->{_fhs}{"$fh"}{outbuffer})>0) { > > > > This fix works for me in any case. > > I hope thats useful > > GOrdon.
-- Regards, MarkOv ------------------------------------------------------------------------ Mark Overmeer MSc MARKOV Solutions Mark@Overmeer.net solutions@overmeer.net http://Mark.Overmeer.net http://solutions.overmeer.net
fixed in 1.13
CC: Rob Brown <bbb@cpan.org>
Subject: Re: [rt.cpan.org #67458] Writer ignores outbuffer set to "0"
Date: Fri, 15 Apr 2011 09:28:03 -0600
To: bug-IO-Multiplex@rt.cpan.org
From: Rob Brown <bbb@cpan.org>
This new version 1.13 looks so awesome. Thank you so much Gordon and Mark!

-- Rob

On Fri, Apr 15, 2011 at 12:43 AM, NLnet webmaster via RT <bug-IO-Multiplex@rt.cpan.org> wrote:
Show quoted text
      Queue: IO-Multiplex
 Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=67458 >

* Rob Brown via RT (bug-IO-Multiplex@rt.cpan.org) [110414 23:56]:
>        Queue: IO-Multiplex
> Thanks, but that might spew warnings if {outbuffer} is undef.

Outbuffer always exists (since last version) to be able to remove
a large number of tests. There where more places with that problem
and apparently one was forgotten to be fixed.

Fix released as 1.13

> On Thu, Apr 14, 2011 at 5:09 AM, Gordon Russell via RT <
> bug-IO-Multiplex@rt.cpan.org> wrote:
>
> > Thu Apr 14 07:09:20 2011: Request 67458 was acted upon.
> > Transaction: Ticket created by drgrussell
> >       Queue: IO-Multiplex
> >     Subject: Writer ignores outbuffer set to "0"
> >   Broken in: 1.12
> >    Severity: Critical
> >       Owner: Nobody
> >  Requestors: g.russell@napier.ac.uk
> >      Status: new
> >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=67458 >
> >
> >
> > Hi. First I just want to say excellent utility
> >
> > if you write the number 0, eg "0", then it does not get sent until the
> > buffer has at least 2 characters in it.
> >
> > Line 691 has:
> >  unless ($self->{_fhs}{"$fh"}{outbuffer}) {
> >
> > This is I think a bug, and should be:
> >  unless (length($self->{_fhs}{"$fh"}{outbuffer})>0) {
> >
> > This fix works for me in any case.
> > I hope thats useful
> > GOrdon.
--
Regards,
              MarkOv

------------------------------------------------------------------------
      Mark Overmeer MSc                                MARKOV Solutions
      Mark@Overmeer.net                          solutions@overmeer.net
http://Mark.Overmeer.net                   http://solutions.overmeer.net





This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

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