RPG CGI - Apache doesn't end my jobs
Last Post 20 Nov 2012 07:02 AM by Ringer. 1 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Sergio Fernandez
New Member
New Member
Posts:30

--
19 Nov 2012 02:03 PM

Hi guys,

I have a simple html form and a CGI program to process it.... Everything works just fine... The only problem is that Apache doesn't end the job...

The RPG program return with *INLR *ON....

In my httpd.conf file, the only directive that seems to be related is:

TimeOut

and the value is 300 (but nothing happens after 300 seconds).

Ending the job manually (4 in WRKACTJOB)  it's the only way for the job to end.... (and, of course, ENDTCPSVR).

 

Any directions?

Thanks a lot!!

Ringer
Veteran Member
Veteran Member
Posts:1724
Avatar

--
20 Nov 2012 07:02 AM

That's the beauty of CGI on the AS400, the jobs stay active so you get faster response time.

If you do a WRKACTJOB SBS(QHTTPSVR), you'll see the waiting CGI jobs similar to these running these programs:

Current                               
Subsystem/Job  User              Type  CPU %  Function     
  WEBCGI         QTMHHTTP    BCH     .0       PGM-QZHBMAIN
  WEBCGI         QTMHHTTP    BCI      .0       PGM-QZSRLOG  
  WEBCGI         QTMHHTTP    BCI      .0       PGM-QZSRLOG  
  WEBCGI         QTMHHTTP    BCI      .0       PGM-QZSRHTTP
  WEBCGI         QTMHHTP1    BCI      .0       PGM-QZSRCGI  
  WEBCGI         QTMHHTP1    BCI      .0       PGM-QZSRCGI

So, I'm not understanding your problem. Are you really saying you don't get a *response* back in under 300 seconds?

Chris Ringer

You are not authorized to post a reply.

Acceptable Use Policy