Re: Can we control which CGI job is used?
Nathan Andelin <[email protected]> Sat, 20 Aug 2022 07:27:33 -0600
| Newsgroups | gmane.comp.systems.as400.web |
|---|---|
| Message-ID | <CACCOLZ=2WtZQd1AfTY6RAwpmToxkm51ChtCK9=PJk0iTzWzJTw@mail.gmail.com> |
You're right that the main multi-threaded HTTP server job routes CGI requests to "available" CGI Jobs, normally. But you also have the option of coding for persistent CGI. See the manual for examples. On Fri, Aug 19, 2022 at 9:00 AM Brad Stone <[email protected]> wrote: > Add a *PSSR to your program(s). :) > > > On Fri, Aug 19, 2022 at 9:10 AM Dave <[email protected]> wrote: > > > Hi, > > > > If my CGI program crashes, I thought that the nexavailable CGI job would > be > > used for further http requests. Apparently not, they return with an error > > http 500. > > Is there anything that can be done to change this behaviour? > > > > My http.conf : > > StartCGI 5 > > #HotBackup Off > > > > So I have 2 groups of 5 CGI jobs each running program QZSRCGI. The first > > job remains in MSGW condition. I believe that if another request was made > > from another client while the first job was still occupied, then the next > > available CGI job would be used. > > > > What condition needs to be met so that the request uses the instances 2 > to > > 5 of my server jobs? > > -- > > This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing > > list > > To post a message email: [email protected] > > To subscribe, unsubscribe, or change list options, > > visit: https://lists.midrange.com/mailman/listinfo/web400 > > or email: [email protected] > > Before posting, please take a moment to review the archives > > at https://archive.midrange.com/web400. > > > > > -- > This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing > list > To post a message email: [email protected] > To subscribe, unsubscribe, or change list options, > visit: https://lists.midrange.com/mailman/listinfo/web400 > or email: [email protected] > Before posting, please take a moment to review the archives > at https://archive.midrange.com/web400. > > -- This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/web400 or email: [email protected] Before posting, please take a moment to review the archives at https://archive.midrange.com/web400.