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
In reply to Reading from a socket by tomservo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |