Hi
I have simple client/server socket scripts that that send some data from the
server to the client. It works fine, except the client can't seem to read
more than 2920 bytes from the server using sysread(). So the data I am
sending over gets cut off. Here is the relevant code:

---
connect(SOCK, $remote) or die "can't connect: $!\n";

$bytes = sysread(SOCK,$buf,4096);
print "read $bytes bytes from server.\n server said: $buf";

-----
It works fine if I use:
while ( <SOCK> ) { print }


Any ideas? Thank You !
Jim






-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to