Article

OpenEdge Web Services connections or method calls can hang indefinitely

« Go Back

Information

 
Article Number000034154
EnvironmentProduct: OpenEdge
Version: 10.2B, 11.0
OS: All supported platforms
Question/Problem Description
OpenEdge Web Services connections or method calls can hang indefinitely.
OpenEdge Web Services connections or SOAP operation calls can hang indefinitely.
If there is a network interruption in any of the layers utilized by Web Services it is possible for an infinite hang to occur.
When using Web Services in the ABL it is possible for the CONNECT method to hang if there is a network interruption.
When using Web Services in the ABL it is possible for any invocation of a method on the Web Service to hang if there is a network interruption.
Steps to Reproduce
Clarifying Information
Error Message
Defect/Enhancement NumberDefect PSC00207493 / OE00176504
Cause
These versions of the ABL do not have the ability to detect and handle a network interruption at every network layer utilized by Web Services.
Resolution
Upgrade to OpenEdge 10.2B07 or OpenEdge 11.1 or later. OpenEdge 11.0 does not contain the resolution for this issue.
 
Once upgraded to a version containing the fix for this issue the following code changes must be made:
 
  1. The CONNECT method must have the "-clientConnectTimeout <n>" phrase added to to the connection string.  <n> is the number of milliseconds to wait before timing out the connection attempt. Please note that since OpenEdge 11, two connection attempts are made before the connection attempt is aborted. So this means that the timeout value which is specified for the -clientConnectTimeout parameter will in reality be twice as much. Please keep this in mind when specifying the timeout value.
  2. Each method call for a Web Service must be wrapped inside of a DO STOP-AFTER <n> block where <n> is the number of seconds to wait before timing out the call. For example:
DO STOP-AFTER 10:
  RUN <method> IN <portName>.
END.

 
Failure to implement both of these changes will allow hangs due to network interruptions to continue to occur.
Workaround
Notes
Attachment 
Last Modified Date3/11/2016 12:58 PM


Feedback
 
Did this article resolve your question/issue?

   

Your feedback is appreciated.

Please tell us how we can make this article more useful. Please provide us a way to contact you, should we need clarification on the feedback provided or if you need further assistance.

Characters Remaining: 1025