TsgcHTTP2ClientMethods › Disconnect

Disconnect Method

Immediately closes the underlying TCP/TLS socket without sending a GOAWAY frame.

Syntax

procedure Disconnect;

Remarks

This is an abrupt shutdown: any in-flight streams are aborted and pending writes are discarded. When a clean notification to the peer is required, call Close first so a GOAWAY frame is sent, and only then tear down the transport with Disconnect. Fires OnHTTP2Disconnect.

Example

oClient.Disconnect;

Back to Methods