[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Timeout Value in LIBHTTP
Sender: "Maurice O'Prey" <maurice.oprey@xxxxxxxxx>
Thanks Scott
Nice to be able to talk to the man himself!
Regards
Maurice
-----Original Message-----
From: owner-ftpapi@xxxxxxxxxxxxx [mailto:owner-ftpapi@xxxxxxxxxxxxx] On
Behalf Of Scott Klement
Sent: 09 June 2006 08:13
To: ftpapi@xxxxxxxxxxxxx
Subject: Re: Timeout Value in LIBHTTP
Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>
> I'm new to this list and may even be in the wrong list, so appologies
> if this is the case.
You've found the right list!
> I just want to ask one quick question about LIBHTTP. I'm using a
> program based on EXAMPLE15 to call an external web service. It works
> fine except that the client rpgle program times out on the odd
> occasion (the fault of a slow network not the code). Is there a way I
> can change the timeout value in LIBHTTP?
Change the following line of code (from EXAMPLE15):
rc = http_url_get_xml( url : *NULL : %paddr(Incoming) : *NULL);
To read as follows:
rc = http_url_get_xml( url : *NULL : %paddr(Incoming) : *NULL: 120);
In this example, it'll timeout after 120 seconds. You can set that 5th
parameter to a higher value or lower value as needed.
If you look at the HTTPAPI_H source member, it has comments that explain
what all of the possible parameters are for HTTPAPI's routines, and what
those parameters do.
Good Luck
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubsribe from the list send mail to
majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------