Does the CALL "HttpPost" library routine have a built-in timeout, or is it conceivable that it could hang indefinitely while waiting for a response?
#RMNet
#ACUCOBOL9.2.1
#HttpPost
#timeout
Does the CALL "HttpPost" library routine have a built-in timeout, or is it conceivable that it could hang indefinitely while waiting for a response?
Does the CALL "HttpPost" library routine have a built-in timeout, or is it conceivable that it could hang indefinitely while waiting for a response?
The RMnet documentation is delivered as a PDF file. I only have the RM/COBOL version for reference.
It does not appear to have a mechanism to specify time out values. RMnet is a wrapper on the curl command line (which in turn is a 'front end') so capabilities are limited to what is exposed there. You can see the curl documentation at curl.haxx.se/.../manual.html. From my reading, I would not expect the ability to specify a time out value.
Does the CALL "HttpPost" library routine have a built-in timeout, or is it conceivable that it could hang indefinitely while waiting for a response?
RM/COBOL v12.09 (Update 5) added two new functions to RMNet, HttpSetConnectTimeout and HttpSetTimeout. These allow setting of CURLOPT_CONNECTTIMEOUT and CURLOPT_TIMEOUT respectively. But these changes have *not* been made to the ACU extend version of RMNet. I believe the default behavior of curl is to wait forever for a response.
Does the CALL "HttpPost" library routine have a built-in timeout, or is it conceivable that it could hang indefinitely while waiting for a response?
Thanks for the responses! Both very helpful.
We are definitely seeing "wait forever" occur. Sounds like we'll have to submit a a feature request.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.