[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Help - HTTP_URL_POST_XML recvresp hanging



Did you set the timeout value or are you using the default?

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Paul Roy
Sent: Friday, January 8, 2016 5:32 AM
To: HTTPAPI and FTPAPI Projects
Subject: Re: Help - HTTP_URL_POST_XML recvresp hanging

Hi, 

this looks to me like a communication error...   either the remote did not 
receive your data or you did not receive the response... 
I had the same kind of issues (not with HTTPAPI but a Java pgm) that was solved by shortening the tcp keep alive value (if i remember correctly, the time that the TCP stack waits before closing the socket . if there is no traffic) the default value is 2 hours and  can be changed with CHGTCPA
TCPKEEPALV(1) to set 1 minute...  you can also change the option of the socket wit set_sock_options()... but I do not know if te option is available in HTTPAPI then you should add some logic in your program to try again... 

Paul




From:   Paul Kenosky <pjkenosky@xxxxxxxxxxxxx>
To:     "ftpapi@xxxxxxxxxxxxxxxxxxxxxx" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Date:   08/01/2016 11:12
Subject:        Help - HTTP_URL_POST_XML recvresp hanging
Sent by:        ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx



Hello,

This is my first post, anyways I have a strange problem with a Soap Call that I could use some help.
I have a pgm that makes a soap call to a server(https:..) and 98% of the time it is successful.
However, randomly/rarely the program will hang/lock up/ sit in a waiting status.. and I have to cancel the program. No error is ever displayed.
I have yet to catch this problem in debug mode, so I can't see exactly what/where she is stuck at...
However I have had http debug turned on and have listed some of the info below... it seems to be hanging after recvresp():


//** below is snip it of the http debug  with some information removed**/

.... Above text removed...
Protocol Used: TLS Version 1.2
http_persist_post(): entered
http_persist_req(POST) entered.
http_long_ParseURL(): entered
http_long_ParseURL(): entered
do_oper(POST): entered
There are 0 cookies in the cache
POST ...Removed location... HTTP/1.1
Host: ...Removed Host...
User-Agent: http-api/1.29
Content-Type: text/xml; charset=utf-8
SOAPAction: ...Removed Action...
Content-Length: 1399

senddoc(): entered
...Removed soap Envelope...
recvresp(): entered

//** end of http debug report **//

There is nothing wrong with the soap envelope I believe because when it got hung up I took the soap string from the debug report and ran it through soapui and it was successful.
I also recalled the program after it is cancelled with the same data and it works...


Below is the call stack taken when the program was hanging....

//** Call Stack Below **//
       HTTPAPIR4  LIBHTTP129    33100             HTTP_URL_POST_XML
       HTTPAPIR4  LIBHTTP129    6155              HTTP_URL_POST_RAW
       HTTPAPIR4  LIBHTTP129    6813              HTTP_PERSIST_POST
       HTTPAPIR4  LIBHTTP129    7020              HTTP_PERSIST_REQ
       HTTPAPIR4  LIBHTTP129    4387              DO_OPER
       HTTPAPIR4  LIBHTTP129    4524              RECVRESP
       HTTPAPIR4  LIBHTTP129    6553              COMMSSL_LINEREAD
       HTTPAPIR4  LIBHTTP129    6365              COMMSSL_READ
       QSOSSLSR   QSYS          111               gsk_secure_soc_read
//** End of Stack Below **//


Other information:

Running IBM V7R2
HTTPAPI Ver 1.29 released 2015-02-23
NTLM Ver 1.4.0 released 2014-12-22
Using RPG
This Problem occurred about 4 times in the last two weeks...
The program that calls HTTP_URL_POST_XML has activation group set to *new


Thanks you,
Paul K

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------