tomservo has asked for the wisdom of the Perl Monks concerning the following question:
while ( $buffer = <$client> ) { $input = $input.$buffer; }
The code will keep blocking waiting for more input after all the data has come through. Sometimes, the browser adds the If-modified-since line in the header so if I use a static number of reads, the data will be without this line and the terminating character that comes with it and the browser won't understand the request.
Any help that you can give is greatly appreciated.
-Tom Servo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reading from a socket
by ozone (Friar) on May 17, 2002 at 12:31 UTC | |
by tomservo (Initiate) on May 17, 2002 at 12:55 UTC | |
by ozone (Friar) on May 17, 2002 at 13:15 UTC |