Session.terminateSession

Signals the session so that the connection should be terminated.

The last stream ID is the minimum value between the stream ID of a stream for which Connector.onFrame was called most recently and the last stream ID we have sent to the peer previously.

The |error_code| is the error code of this GOAWAY frame. The pre-defined error code is one of FrameError.

After the transmission, both wantRead() and wantWrite() return 0.

This function should be called when the connection should be terminated after sending GOAWAY. If the remaining streams should be processed after GOAWAY, use submitGoAway() instead.

Meta