in reply to Server script through inetd
to read, they read small messages.while($line = <SOCK>)
In general, when you read from a TCP socket you need to be sure you got a whole message (a line in your case) and continue reading until you can verify that you got the whole message.
You can test with something like this:
--traveler </code>$| = 1; # remove buffering while($input = <STDIN>){ # maybe process the input print $input; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Server script through inetd
by tye (Sage) on Jul 25, 2001 at 23:48 UTC |