|Think about Loose Coupling|
Missing data in IO::Socket::INET sysread/syswriteby reasonablekeith (Deacon)
|on Sep 10, 2009 at 15:25 UTC||Need Help??|
reasonablekeith has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to push some files around using a couple of perl scripts and sockets, but have come up against an intermittent problem reading and writing data. Simply, my server is doing a syswrite, but my client's sysread doesn't receive all the data.
The sockets are created in the normal way
and my read / write functions look like this
Which occasionally gives output like this.
The really weird thing is that most times this will just work. My client and server are running on the same machine, which has active perl 5.10, and IO::Socket::INET is at version 1.31.
Ignoring the code and it's limitations (which I'll work on if I get this sorted), does anyone see why this might be failing every now and then?
my name's not Keith, and I'm not reasonable.