Connector.onInvalidFrame

Callback function invoked by Session.recv when an invalid non-DATA frame is received. The |error_code| indicates the error. It is usually one of the FrameError but that is not guaranteed. When this callback function is invoked, the library automatically submits either RST_STREAM or GOAWAY frame.

If frame is HEADERS or PUSH_PROMISE, the `hfa` member of thee data structure is always `null`

If this callback returns false, it is treated as fatal error and Session.recv and Session.send functions immediately return ErrorCode.CALLBACK_FAILURE.

class Connector
public
bool
onInvalidFrame

Meta