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:~#