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
In reply to Re: Re: Re: Re: Re: using CGI on HTTP::Request from HTTP::Daemon
by tachyon
in thread using CGI on HTTP::Request from HTTP::Daemon
by gregor-e
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |