X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FExtMsg.pm;fp=perl%2FExtMsg.pm;h=8a5e4612926b9b5da6a8212f6404090f62c78fab;hb=3f64c5686df118fa3f3a1d66a87f25b89eb1732a;hp=cc938bd822223706de2e50369d5cd29fe1b0590c;hpb=a6e52cc1680c2c30ef874e2e6c16d00c956624ee;p=spider.git diff --git a/perl/ExtMsg.pm b/perl/ExtMsg.pm index cc938bd8..8a5e4612 100644 --- a/perl/ExtMsg.pm +++ b/perl/ExtMsg.pm @@ -129,6 +129,7 @@ sub new_client { $conn->{blocking} = 0; my ($rproc, $eproc) = &{$server_conn->{rproc}} ($conn, $conn->{peerhost} = $sock->peerhost(), $conn->{peerport} = $sock->peerport()); + dbg('connll', "accept $conn->{cnum} from $conn->{peerhost} $conn->{peerport}"); if ($eproc) { $conn->{eproc} = $eproc; Msg::set_event_handler ($sock, "error" => $eproc); @@ -363,8 +364,9 @@ sub _send_file if ($f) { while (<$f>) { chomp; - dbg('connll', $_); - $conn->send_raw($_ . $conn->{lineend}); + my $l = $_; + dbg('connll', "connect $conn->{cnum}: $l"); + $conn->send_raw($l . $conn->{lineend}); } $f->close; }