X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FAGWMsg.pm;fp=perl%2FAGWMsg.pm;h=a2a353f42e47c394bc5cb128b6826cbd26dbfe5c;hb=f27e9460a85b5ba3ec8b51d14808220023b70917;hp=7582e2c723be8d45e0e3b0f23293e3d6f72174a3;hpb=02a0660296c61b3d303497695a37d6060e359d57;p=spider.git diff --git a/perl/AGWMsg.pm b/perl/AGWMsg.pm index 7582e2c7..a2a353f4 100644 --- a/perl/AGWMsg.pm +++ b/perl/AGWMsg.pm @@ -183,6 +183,8 @@ sub _rcv { # Complement to _send if (defined ($bytes_read)) { if ($bytes_read > 0) { $inmsg .= $msg; +# $msg =~ s/([\x00-\x1f\x7f-\xff])/sprintf("%%%02X", ord($1))/eg; +# dbg('connll', $msg); } } else { if (Msg::_err_will_block($!)) { @@ -196,7 +198,7 @@ FINISH: if (defined $bytes_read && $bytes_read == 0) { finish(); } else { - _decode() if length $inmsg > 36; + _decode() if length $inmsg >= 36; } } @@ -358,7 +360,8 @@ sub _decode dbg('agw', "AGW Port: $_"); } for (my $i = 0; $i < $noports; $i++) { - _sendf('y', undef, undef, $i ); + _sendf('y', undef, undef, $i); + _sendf('g', undef, undef, $i); } } else { my $d = unpack "Z*", $data;