[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Help - HTTP_URL_POST_XML recvresp hanging
When did you last apply PTFs - happen to correspond to when this started?
Mike Krebs
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Paul Kenosky
Sent: Friday, January 8, 2016 12:51 PM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: FW: Help - HTTP_URL_POST_XML recvresp hanging
Thanks for helping me through this...
I will look into CHGTCPA TCPKEEPALV(1) and see if that leads me anywhere... however you mention the default is 2 hours... I have left one of the hanging jobs run for about 6 hours before cancelling it....
As for the TimeOut value I am using default CONST which is I believe 60secs...
I am setting ccsids which im not really sure what it does or if I even need it...
(someone started the program and it was in there when I got it)
//** below is RPG code that is making the call **//
HTTP_SETCCSIDS ( 1208: 0);
//'Call service to check address
returnCode = HTTP_URL_POST_XML
( %trim(POSTLINK)
: %addr(soapParms) + 2
: %len(soapParms)
: *null
: %paddr(response)
: %addr(returnUserData)
: HTTP_TIMEOUT
: HTTP_USERAGENT
: 'text/xml; charset=utf-8'
: %trim(ACTIONLINK)
);
if (returnCode <> 1);
outError = 'Validation Call Failed';
endif;
//** end RPG code that is making the call **//
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Mike Krebs
Sent: Friday, January 08, 2016 1:06 PM
To: HTTPAPI and FTPAPI Projects
Subject: 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://urldefense.proofpoint.com/v2/url?u=https-3A&d=CwICAg&c=rxuyg758I4Zd3CDHNny_Hw&r=JkfuZ4E665mlFfpIfGYhkELl0BTRh7r_Gm0xUf-MqYc&m=zGL5d7QlK6GrmxAQbRv8vn8-c-eV0vRKoSnTpfJNUeU&s=v_vCkksMuGmo2X78QCP2KAIWbfIIpyG0Z9IANkoqsng&e= ..) 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:
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.scottklement.com_mailman_listinfo_ftpapi&d=CwICAg&c=rxuyg758I4Zd3CDHNny_Hw&r=JkfuZ4E665mlFfpIfGYhkELl0BTRh7r_Gm0xUf-MqYc&m=zGL5d7QlK6GrmxAQbRv8vn8-c-eV0vRKoSnTpfJNUeU&s=Qmx6Zw-sfNUoV4ISQcWg9yafztiLjGg2dqJZYTyfV2Q&e=
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.scottklement.com_mailman_listinfo_ftpapi&d=CwICAg&c=rxuyg758I4Zd3CDHNny_Hw&r=JkfuZ4E665mlFfpIfGYhkELl0BTRh7r_Gm0xUf-MqYc&m=zGL5d7QlK6GrmxAQbRv8vn8-c-eV0vRKoSnTpfJNUeU&s=Qmx6Zw-sfNUoV4ISQcWg9yafztiLjGg2dqJZYTyfV2Q&e=
-----------------------------------------------------------------------
-----------------------------------------------------------------------
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
-----------------------------------------------------------------------