in reply to Re: No data received on client socket
in thread No data received on client socket
I've tried it, but it does not work.
By the way, on old installations it works with recv().
I've read that recv() shrinks to a smaller size if the last chunk of bytes is shorter than the specivfied size (4096 in this case), while sysread tries to read the specified size.
Update I've tested your implementation and - as with the original code - I can see with tcpdump the query results coming back as network traffic but I get nothing in Perl.
By the way, on old installations it works with recv().
I've read that recv() shrinks to a smaller size if the last chunk of bytes is shorter than the specivfied size (4096 in this case), while sysread tries to read the specified size.
Update I've tested your implementation and - as with the original code - I can see with tcpdump the query results coming back as network traffic but I get nothing in Perl.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: No data received on client socket
by ikegami (Patriarch) on Sep 19, 2006 at 18:27 UTC | |
by rbi (Monk) on Sep 19, 2006 at 19:42 UTC |
In Section
Seekers of Perl Wisdom