Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: No data received on client socket

by caelifer (Scribe)
on Sep 19, 2006 at 21:16 UTC ( [id://573812]=note: print w/replies, xml ) Need Help??


in reply to Re^2: No data received on client socket
in thread No data received on client socket

This looks more and more like a network / os configuration problem. Check your host configs. Is there a pocket filter active on the host itself? Is it possible that you have some other client binded to the same port? I'm not sure if socket interface on Windows allows that though. As a last suggestion try write a simple echo server and run it on the localhost with the same port number and see if your application can receive a message. Or maybe simulate a network exchage with Telnet session.

BR

# Simple echo server using POE framework (from CPAN) #!/usr/bin/perl use warnings; use strict; use POE qw(Component::Server::TCP); POE::Component::Server::TCP->new( Port => 12345, ClientInput => \&client_input, ); POE::Kernel->run(); exit; sub client_input { my ($heap, $input) = @_[ HEAP, ARG0 ]; print "[$$]: $input\n"; $heap->{client}->put($input); }

Replies are listed 'Best First'.
Re^4: No data received on client socket
by rbi (Monk) on Sep 20, 2006 at 15:07 UTC
    I tried to run the echo server but I don't get anything back.
    This is the tcpdump kind of output I get out of the original script (and with yours and ikegami's suggestions):
    client:/home/user # tcpdump -i eth0 -A port 6928 -xX -vv -s 0 listening on eth0, link-type EN10MB (Ethernet), capture size 65535 byt +es 16:59:48.813909 IP (tos 0x0, ttl 64, id 22143, offset 0, flags [DF], +proto: TCP (6), length: 60) client.12110 > server.6928: 16:59:48.814003 IP (tos 0x0, ttl 128, id 58743, offset 0, flags [DF], +proto: TCP (6), length: 64) server.6928 > client.12110: S, cksum 0x82 +75 (correct), 1326247112:1326247112(0) ack 4102086732 win 17520
    I've noticed that the port on the client changes every time i run the script. May it be this the problem ? How could I stick it to the 6928 port ?
    Unfortunetely I cannot run right now tcpdump on the older Linux boxes where it works fine, to see if there is any difference.
    Thanks a lot for any hint.

      I've noticed that the port on the client changes every time i run the script. May it be this the problem ?

      That's normal.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://573812]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-19 06:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found