Search in sources :

Example 1 with GoAway

use of io.vertx.core.http.GoAway in project vert.x by eclipse.

the class Http2ConnectionBase method onGoAwayReceived.

synchronized void onGoAwayReceived(int lastStreamId, long errorCode, ByteBuf debugData) {
    Handler<GoAway> handler = goAwayHandler;
    if (handler != null) {
        Buffer buffer = Buffer.buffer(debugData);
        context.executeFromIO(() -> {
            handler.handle(new GoAway().setErrorCode(errorCode).setLastStreamId(lastStreamId).setDebugData(buffer));
        });
    }
    checkShutdownHandler();
}
Also used : Buffer(io.vertx.core.buffer.Buffer) GoAway(io.vertx.core.http.GoAway)

Aggregations

Buffer (io.vertx.core.buffer.Buffer)1 GoAway (io.vertx.core.http.GoAway)1