I've setup a simple stream_socket_client and socket server scripts.
If I run the server script on a different machine than the client and
send data, not all the data reaches the server. If I run the server
and client on the same machine there is no problem. If I play around
with the size of the chunks I'm sending I get slightly different
results, but it never resolves the problem entirely. The error
message I see on the server side is "Warning: socket_read(): unable to
read from socket [104]: Connection reset by peer"
I'd normally consider this a network issue, but I've seen this work
recently from a PHP 4.3.x box as the client and a server somewhere
else on the Internet.
Are there factors that impact how much data stream_socket_client can
send? I've checked my php.ini's to make sure there is plenty of
memory available and timeouts aren't too short.
Any thoughts? Thanks