[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HTTPAPI somitimes Timeout with CommSSL err. 43
This error means that HTTPAPI is sitting an waiting for the HTTP server
to send more data, and that none has arrived (within the timeout
interval.)
This is not related to the set_100_timeout routine. It is not related
to SSL certificates or the size of the document. It means that there
has been no data at all from the server for (whatever your timeout
interval is set to) seconds.
Your example shows you setting a variable named myTimeout to 120. Are
you passing that variable to HTTPAPI in the peTimeout parameter? If
you are, then it has not received any data (not even a single byte)
from the server for 120 seconds. So it's giving up.
If this is happening inconsistently, I'd guess it's a network problem.
Maybe someone is rebooting a router or firewall. Or disconnecting from
the internet temporarily for maintenance, or something like that.
On 7/17/2014 1:53 AM, Marco Cecchi wrote:
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.
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
[1]http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
References
1. 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
-----------------------------------------------------------------------