Subject: Short reads in CGI applications: THE SCOTT'S "CHAMPAGNE" WAY !

Dar Scott dsc at swcp.com
Fri Dec 20 12:34:01 EST 2002


On Friday, December 20, 2002, at 06:30 AM, Pierre Sahores wrote:

>> We'll look into supporting a simpler way to do this for 2.5 (not sure
>> whether to fix it so "read .. for $CONTENT_LENGTH" works, or to
>> support "read .. until eof" on pipes), but in the mean time something
>> like the above should solve the problem.
>>   Regards,
>>     Scott

I like the idea (from my own non-CGI perspective) of both "read .. until 
empty", meaning give me what you have, and "read ... until eof", meaning 
read until the pipe is closed by the other end.  Might as well apply 
that to all reads where the difference is meaningful.

Dar Scott
(The voice in the back of the room.)




More information about the metacard mailing list