|
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
|