in reply to Re: Re: Re: Re: using CGI on HTTP::Request from HTTP::Daemon
in thread using CGI on HTTP::Request from HTTP::Daemon
The problem per se is that there is no eof reaching CGI::Simple. As a result it blocks (hangs) on the read here:
sub _read_data { read ( STDIN, my $buffer, 16 ); # nb changed buf size for testing return $buffer; }
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Re: using CGI on HTTP::Request from HTTP::Daemon
by PodMaster (Abbot) on May 26, 2004 at 03:53 UTC | |
by tachyon (Chancellor) on May 26, 2004 at 04:13 UTC | |
by PodMaster (Abbot) on May 26, 2004 at 04:48 UTC | |
by tachyon (Chancellor) on May 26, 2004 at 06:05 UTC |