TsgcHTTP2Client | HTTP/2 Reason Disconnection
HTTP/2 Server can disconnect a client for several reasons, when server
wants inform to client the reason why is disconnecting, it sends a GoAway message to client with information
about disconnection.
Use OnHTTP2GoAway event to catch the reason why server has disconnected
(if client wants to close a connection, can use the method close to send
the reason why is closing the connection).
TsgcHTTP2GoAwayProperty Object
contains the information about disconnection
- LastStreamId:
is the last stream processed by server.
- ErrorCode:
integer which identifies the error code.
- ErrorDescription:
description of the error, one of the following:
- no error
- protocol error
- internal error
- flow control error
- settings timeout
- stream closed
- frame size error
- refused stream
- cancel
- compression error
- connect error
- enhance your calm
- inadequate security
- required
- AdditionalDebugData:
optional string which offers more information about disconnection.