Click here to get back home

IO::Socket sometimes hang, why? Please help

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
IO::Socket sometimes hang, why? Please help ccc 11-07-2004
Posted by ccc on November 7, 2004, 7:54 pm
Please log in for more thread options
Hi,

This is a really confusing question for me. This is what I am trying
to do:
1. Server sends a command to client
2. Server sleeps while client executes
3. Client tells server of the result of that execution.

The script works sometimes. I.e. sometimes it would hang at the #3
step and sometimes I will complete. When it hangs, both server and
client seem to be in a dead loop, either both are waiting or
listening, I don't know.I tried to print the output, i.e.
say output from reading <socket> should be for server
line 1: aaaa
line 2. bbbb

and output for the client should be
line 1: AAA
line 2: BBB

when it hangs, they both stop at line 1. So I don't know if server
fails to send or client fails to receive in order to go on to line 2.

Please please please please, and please give me tips or any helps that
may address. The strange thing is that this doesn't always happen. So
I am guessing is it because when client executes stuff, that screws up
the pipe?

Thanks.
Jiac


Similar ThreadsPosted
IO::Socket::SSL March 24, 2005, 10:10 pm
LWP and socket May 1, 2007, 6:06 pm
IO::Socket->socketpair() May 21, 2007, 3:25 pm
Installing IO::Socket::SSL on Win32? June 30, 2006, 11:11 am
IO::Socket default timeout September 25, 2006, 2:35 pm
IO::Socket::SSL: cannot connect using different LocalAddr October 2, 2007, 12:28 pm
Credentials and POST method with IO::Socket::SSL? June 30, 2006, 5:14 pm
IO::Socket::INET nonblocking confusing April 25, 2007, 7:27 am
SSLeay & OpenSSL problem with install of IO::Socket::SSL June 24, 2005, 9:39 am
IO::Socket::INET hanging if packets are droped August 25, 2008, 2:10 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap