my $session = new CGI::Session()

K

Kevin

When I try to initialize a CGI session with my $session = new
CGI::Session(), my script hangs and eventually throws a CGI timeout.
This actually occurs when trying to create a new anything, be it
session, or CGI, or anything. Any thoughts?
 
J

J. Gleixner

Kevin said:
When I try to initialize a CGI session with my $session = new
CGI::Session(), my script hangs and eventually throws a CGI timeout.
This actually occurs when trying to create a new anything, be it
session, or CGI, or anything. Any thoughts?

What's a "CGI timeout"? The error message it provides, should be a bit
more descriptive.
 
K

Kevin

What's a "CGI timeout"? The error message it provides, should be a bit
more descriptive.

The exact error shown in the browser is:

CGI Timeout
The specified CGI application exceeded the allowed time for
processing. The server has deleted the process.

HTTP Headers return a 502.

I did some playing with the code, and this only happens when i POST to
it from a form, if I hardcode the variables sent by the form and go to
the script directly it works fine..
 
J

Jamie

In said:
The exact error shown in the browser is:

CGI Timeout
The specified CGI application exceeded the allowed time for
processing. The server has deleted the process.

HTTP Headers return a 502.

I did some playing with the code, and this only happens when i POST to
it from a form, if I hardcode the variables sent by the form and go to
the script directly it works fine..

Going out on a limb, but are you using CGI.pm ?

I'd have a look at whatever-it-is that is reading the standard input, maybe
even use telnet to fake a post with a dummy \n on the end. Perhaps someplace,
in some code far away is a line such as this:

read(STDIN,$buffer,$length);

Try finding that point and working backwards from there. Maybe verify
the $length is indeed the correct length.

It seems like it could be a problem with hanging on the input. (do other post
scripts work? is the web server configured to permit POST?

Jamie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,763
Messages
2,569,563
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top