the read from standard in bug

Sadhunathan Nadesan sadhu at castandcrew.com
Sun Mar 16 11:59:01 EST 2003


| 
| Sadhu,
| 
| This was a post from Scott about this back in October:
| 
| ------------------
| We've recently received several reports of short reads from stdin in CGI
| (snip) ...
| 
| 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
| -------------------


Ok, thanks Ken.  I'll try read until eof and see if that works.  In other
words,

   put empty into buffer
   repeat until eof
     read from stdin until empty
     put it after buffer
   end repeat

Sadhu



More information about the metacard mailing list