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

HTTPAPI somitimes Timeout with CommSSL err. 43



   Hello,


   thanks in advance for your open source and for your help.

   I installed HTTPAPI v1.24 on my iSeries v5r4, and I build some RPGLE
   programs seeing at Scott' Examples.


   In particular I use http_url_post_xml for consume our partner's
   WebService, but often (expecially by night) in the log I see this
   error:

   43: CommSSL_Read:  time-out

   (I attached the full error log without senible data)


   The WS I'm calling isn't very heavy, in about 20 seconds when it works
   it end successfully (attached success log too for your comparation).

   However, reading previous posts on this mailing list archive, I tried
   to set this 2 parms:


   http_set_100_timeout(0);

   myTimeOut = 120;                   // Substitutes  HTTP_TIMEOUT
   (60secs)


   But still receive timeout error in the night and early morning, while
   success in the afternoon.

   I notice that when I receive the timeout in the morning, the same
   timeout I have on SoapUI tool, so I thought the problem was on partner
   remote server (maybe 2 with different settings ), but from their log
   they say that when I receive the error, on their side the request end
   successfully...


   If it was a SSL certificate problems I think that it should ever return
   the error.

   However I only set up the *SYSTEM certificate store in the Digital
   Certificate Manager. I didn't installed any external digital
   certificates.


   Where and what may be the problem?


   Thanks and Regards,

   Marco Cecchi
   DATACOM Srl

   Presso Com-Ital Group

   Via dell'Artigianato, 28
   59013 Montemurlo (PO)
   Tel +39 0574 653453
   Fax +39 0574 650740


   Ai sensi del D. Lgs. 196/03 si precisa che le informazioni contenute in
   questa e-mail ed eventuali suoi allegati sono riservate e ad uso
   esclusivo del destinatario. Qualora il messaggio Vi fosse pervenuto per
   errore, Vi invitiamo ad eliminarlo senza copiarlo e a non inoltrarlo a
   terzi, dandocene immediata comunicazione. Grazie.
HTTPAPI Ver 1.24 released 2012-01-23
OS/400 Ver V5R4M0

New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819. ProtLoc=0
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry  : 2
DNS resolver options: x'00000136'
DNS default domain: DATACOMPO1
DNS server found: 100.100.100.10
https_init(): entered
-------------------------------------------------------------------------------------
Dump of local-side certificate information:
-------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------
Dump of server-side certificate information:
-------------------------------------------------------------------------------------
Cert Validation Code = 6000
-----BEGIN CERTIFICATE-----
MIIE5zCCA8+gAwIBAgIQC1OckL6TEdvrHtc+iL0alzANBgkqhkiG9w0BAQsFADB+
.....................................................continue...
-----END CERTIFICATE-----
Serial Number: 0B:53:9C:90:BE:93:11:DB:EB:1E:D7:3E:88:BD:1A:97
Common Name: DIS.CRIBIS.COM
Country: IT
State/Province: BOLOGNA
Locality: BOLOGNA
Org Unit: CRIF S.p.A.
Org: CRIF S.p.A.
Issuer CN: Symantec Class 3 Secure Server CA - G4
Issuer Country: US
Issuer Org: Symantec Corporation
Issuer Org Unit: Symantec Trust Network
Version: 03
not before: 20140617020000
not after: 20150623015959
pub key alg: 1.2.840.113549.1.1.11

Protocol Used: TLS Version 1
http_persist_post(): entered
http_persist_req(POST) entered.
http_long_ParseURL(): entered
do_oper(POST): entered
There are 0 cookies in the cache
POST /PowerMonitor/2012-04-20/ HTTP/1.1
Host: dis.cribis.com
User-Agent: http-api/1.24
Content-Type: text/xml
SOAPAction: 2012-04-20/PowerMonitor/GetMonitoredEntities
Content-Length: 618


senddoc(): entered
<?xml version="1.0"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:ns="2012-04-20">    <soapenv:Header/>    <soapenv:Body> ... continue...
recvresp(): entered
SetError() £43: CommSSL_Read:  time-outé
recvresp(): end with timeout
http_close(): entered
HTTPAPI Ver 1.24 released 2012-01-23
OS/400 Ver V5R4M0

New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819. ProtLoc=0
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry  : 2
DNS resolver options: x'00000136'
DNS default domain: DATACOMPO1
DNS server found: 100.100.100.10
https_init(): entered
-------------------------------------------------------------------------------------
Dump of local-side certificate information:
-------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------
Dump of server-side certificate information:
-------------------------------------------------------------------------------------
Cert Validation Code = 6000
-----BEGIN CERTIFICATE-----
MIIE5zCCA8+gAwIBAgIQC1OckL6TEdvrHtc+iL0alzANBgkqhkiG9w0BAQsFADB+
.....................................................Continue...
-----END CERTIFICATE-----
Serial Number: 0B:53:9C:90:BE:93:11:DB:EB:1E:D7:3E:88:BD:1A:97
Common Name: DIS.CRIBIS.COM
Country: IT
State/Province: BOLOGNA
Locality: BOLOGNA
Org Unit: CRIF S.p.A.
Org: CRIF S.p.A.
Issuer CN: Symantec Class 3 Secure Server CA - G4
Issuer Country: US
Issuer Org: Symantec Corporation
Issuer Org Unit: Symantec Trust Network
Version: 03
not before: 20140617020000
not after: 20150623015959
pub key alg: 1.2.840.113549.1.1.11

Protocol Used: TLS Version 1
http_persist_post(): entered
http_persist_req(POST) entered.
http_long_ParseURL(): entered
do_oper(POST): entered
There are 0 cookies in the cache
POST /PowerMonitor/2012-04-20/ HTTP/1.1
Host: dis.cribis.com
User-Agent: http-api/1.24
Content-Type: text/xml
SOAPAction: 2012-04-20/PowerMonitor/GetMonitoredEntities
Content-Length: 618


senddoc(): entered
<?xml version="1.0"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:ns="2012-04-20">    <soapenv:Header/>    <soapenv:Body>  ...Continue...
recvresp(): entered
HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 379047
Content-Type: text/xml; charset=utf-8
Server: Microsoft-IIS/7.5
Set-Cookie: ASP.NET_SessionId=kichrgumeox4qlax0k2m54wf; path=/; HttpOnly
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Thu, 17 Jul 2014 06:21:41 GMT


SetError() £13: HTTP/1.1 200 OK
recvresp(): end with 200
recvdoc parms: identity 379047
header_load_cookies() entered
cookie_parse() entered
cookie =  ASP.NET_SessionId=kichrgumeox4qlax0k2m54wf; path=/; HttpOnly
cookie attr ASP.NET_SessionId=kichrgumeox4qlax0k2m54wf
cookie attr path=/
cookie attr HttpOnly=
recvdoc(): entered
SetError() £0:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/";><s:Body ...Continue...
http_close(): entered
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------