Skip Menu |

This queue is for tickets about the Protocol-Gearman CPAN distribution.

Report information
The Basics
Id: 96732
Status: resolved
Priority: 0/
Queue: Protocol-Gearman

People
Owner: Nobody in particular
Requestors: CHORNY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.03
Fixed in: 0.04



Subject: 02packet.t hangs on Windows
ok 1 - $name from parse_packet ok 2 - @rgs from parse_packet ok 3 - $bytes still has tail after parse_packet ok 4 - build_packet ok 5 - parse_packet dies with no magic ok 6 - $bytes written by send_packet ok 7 - $name from recv_packet ok 8 - @args from recv_packet ok 9 - recv_packet dies with no magic (hangs) -- Alexandr Ciornii, http://chorny.net
Oops. That'll be the non-blocking drain it does. Try attached patch. -- Paul Evans
Subject: rt96732.patch
=== modified file 't/02packet.t' --- t/02packet.t 2014-06-23 13:55:57 +0000 +++ t/02packet.t 2014-07-03 12:19:49 +0000 @@ -49,11 +49,8 @@ $wr->syswrite( "No magic here" ); ok( exception { Protocol::Gearman->recv_packet_from_fh( $rd ) }, 'recv_packet dies with no magic' ); - { - $rd->blocking(0); - $rd->sysread( my $tmp, 8192 ); # drain - $rd->blocking(1); - } + + # Note to self: can't use $rd any more as it has junk in it } done_testing;
Released in 0.04 -- Paul Evans