TsgcHTTP3Server › Methods › Stop
Stops the listener and closes all active connections.
procedure Stop;
Stop terminates the background listener thread, closes every active QUIC connection and releases the OpenSSL context and the listener socket bound to Port. OnShutdown is raised once the listener is down, and OnH3Disconnect fires for the connections that are torn down. After Stop returns the server accepts no connections; call Start again to resume serving.
Stop is equivalent to setting Active to False, and it is called automatically when the component is destroyed, so an owned component does not need an explicit Stop before it is freed.
Stop is abrupt by design: it closes connections rather than waiting for in-flight requests to complete. To drain a server cleanly, send SendGoAway on each connection first, which tells clients to stop opening request streams and lets outstanding requests finish, and call Stop once they have.
This method is inherited from TsgcQUICServer.
oServer.Stop;