Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^2: No data received on client socket

by ikegami (Pope)
on Sep 21, 2006 at 15:52 UTC ( #574169=note: print w/ replies, xml ) Need Help??

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

Which change fixed it? Did using while (<FH>) or fixing the options passed to the constructor fix it?

SOCK_STREAM is 1, but 'SOCK_STREAM' probably got treated as 0. If that's the problem, you should go back to using sysread/syswrite.

By the way, what's with local *FH = $oSocket;? Everywhere you use FH, you can put $oSocket. (e.g. print $oSocket ..., while (<$oSocket>), sysread($oSocket, ...), etc)

Comment on Re^2: No data received on client socket
Select or Download Code
Replies are listed 'Best First'.
Re^3: No data received on client socket
by rbi (Monk) on Sep 21, 2006 at 16:07 UTC
    It worked when I put while(<FH>) and kept working when I forced the while condition to be true.
    Thanks for the correction on directly using the $oSocket.

    The same code accessing the same SQL server has a different behavior on different Linux boxes.. I hope this fix will work on the old ones :)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2015-11-27 17:15 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (731 votes), past polls