Skip Menu |

This queue is for tickets about the POE CPAN distribution.

Report information
The Basics
Id: 87635
Status: resolved
Priority: 0/
Queue: POE

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

Bug Information
Severity: Important
Broken in: 1.354
Fixed in: (no value)



Subject: "Connected" Event not working if you have watermarks
If you use watermarks, the Connected Event will not get triggert because of a wrong return. Here is a patch for this, works for me. # diff -U 3 /usr/share/perl5/POE/Component/Client/TCP.pm* --- /usr/share/perl5/POE/Component/Client/TCP.pm 2013-08-05 23:49:07.000000000 +0200 +++ /usr/share/perl5/POE/Component/Client/TCP.pm.old 2013-08-05 23:49:36.000000000 +0200 @@ -211,7 +211,7 @@ ErrorEvent => 'got_server_error', FlushedEvent => 'got_server_flush', do { - $using_watermarks ? ( + $using_watermarks ? return ( HighMark => $high_mark_level, HighEvent => 'got_high', LowMark => $low_mark_level, root@akk:~#
Thank you for the patch. It will be in the next release of POE. commit 4e7961d6370cef5741d4ac2f9023fb7e2dad309d Author: Markus Müller <privi@cpan.org> Date: Sun Aug 18 21:52:36 2013 -0400 [rt.cpan.org 87635] Fix PoCo::Client::TCP "Connected" event w/watermarks. If you use watermarks, the Connected Event will not get triggert because of a wrong return. This change corrects that.