Keep It Simple, Stupid | |
PerlMonks |
Re: Re: Re: Re: Re: using CGI on HTTP::Request from HTTP::Daemonby tachyon (Chancellor) |
on May 26, 2004 at 03:38 UTC ( [id://356448]=note: print w/replies, xml ) | Need Help?? |
The problem per se is that there is no eof reaching CGI::Simple. As a result it blocks (hangs) on the read here:
In essence the difference between the way CGI.pm reads data and what I did in this module is that CGI stops when it gets what it expects, thus it is not eof dependent. It is actually quite interesting what happens. If you increase the buffer size on the read so it can slurp the data in one pass it works fine. It is only if you read bytewise that read (or sysread) fails to recognise the end of the data stream. cheers tachyon
In Section
Seekers of Perl Wisdom
|
|