Using the DISCONNECT( ) method
- Last Updated: May 12, 2021
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Using the DISCONNECT( ) method terminates the
connection with the specified PAS for OpenEdge instance by sending a disconnect request to
the connected server. When the server receives the disconnect request, the following
occurs:
- For a session-managed connection— Any configured Disconnect procedure executes in any bound or otherwise available server session, then control returns to the client application.
- For a session-free connection — No Disconnect procedure executes and client control continues without interruption.
-
For any server with pending asynchronous requests — All
running or pending asynchronous requests are canceled and the corresponding event
procedure is called for each request. The
CANCELLEDattribute on the asynchronous request handle for all such canceled requests is set toTRUE. For more information on asynchronous requests, see Managing asynchronous requests.