force end of HTTPAPI Connection with remote server

Discussions related to HTTPAPI (An HTTP Client Package for RPG programming.) http://www.scottklement.com/httpapi/
Post Reply
DaleSigwart
Posts: 11
Joined: Thu Dec 07, 2023 10:23 pm

force end of HTTPAPI Connection with remote server

Post by DaleSigwart »

Hi,

I am hoping this is a simple question.

What command do I use in HTTPAPI to force and end and drop connection from the IBM I?
The remote host want to keep connection alive for 60 minutes. This is OK sometimes but most of the user jobs won't last that long.

Any ideas are appreciated.

Thanks,
Dale
Scott Klement
Site Admin
Posts: 872
Joined: Sun Jul 04, 2021 5:12 am

Re: force end of HTTPAPI Connection with remote server

Post by Scott Klement »

The persistent routines (http_persist_xxx) are the only routines in HTTPAPI that keep a connection open. The others disconnect automatically before returning control to your RPG program.
Post Reply