Table of Contents

TTMSMCPClientTransportHTTP.Stop Method

Ends the session on the server and stops every worker the transport is running.

API unit family: TMS.MCP.Client.Transport.HTTP Declaring type: TTMSMCPClientTransportHTTP

Syntax

procedure Stop; override;

Remarks

The workers are signalled and waited for, so the call blocks until the requests that were in flight have been torn down; the remembered session identifier is then cleared and the server is asked to discard the session. Calling this while the transport is not running has no effect. Because it waits for the workers, calling it from inside a handler that one of those workers raised would deadlock; the transport itself always marshals such a call away from the worker first.