onConnectionError() — netty Function Reference
Architecture documentation for the onConnectionError() function in Http2ConnectionHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD df92c2ff_9755_fb16_8a01_5a190020aec4["onConnectionError()"] a9ab361d_2417_0366_d9d0_ae1adb2145dc["Http2ConnectionHandler"] df92c2ff_9755_fb16_8a01_5a190020aec4 -->|defined in| a9ab361d_2417_0366_d9d0_ae1adb2145dc c019b218_592f_da69_100d_79381ffa0e04["onError()"] c019b218_592f_da69_100d_79381ffa0e04 -->|calls| df92c2ff_9755_fb16_8a01_5a190020aec4 8e97cadb_d2af_9d50_dcbc_1c06799cfa51["processRstStreamWriteResult()"] 8e97cadb_d2af_9d50_dcbc_1c06799cfa51 -->|calls| df92c2ff_9755_fb16_8a01_5a190020aec4 20d99902_34b1_6738_cd14_e4af705734d8["closeConnectionOnError()"] 20d99902_34b1_6738_cd14_e4af705734d8 -->|calls| df92c2ff_9755_fb16_8a01_5a190020aec4 401e2e76_994c_3bf5_9e43_754e2ba61459["doGracefulShutdown()"] df92c2ff_9755_fb16_8a01_5a190020aec4 -->|calls| 401e2e76_994c_3bf5_9e43_754e2ba61459 style df92c2ff_9755_fb16_8a01_5a190020aec4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionHandler.java lines 677–690
protected void onConnectionError(ChannelHandlerContext ctx, boolean outbound,
Throwable cause, Http2Exception http2Ex) {
if (http2Ex == null) {
http2Ex = new Http2Exception(INTERNAL_ERROR, cause.getMessage(), cause);
}
ChannelPromise promise = ctx.newPromise();
ChannelFuture future = goAway(ctx, http2Ex, ctx.newPromise());
if (http2Ex.shutdownHint() == Http2Exception.ShutdownHint.GRACEFUL_SHUTDOWN) {
doGracefulShutdown(ctx, future, promise);
} else {
future.addListener(newClosingChannelFutureListener(ctx, promise));
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does onConnectionError() do?
onConnectionError() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionHandler.java.
Where is onConnectionError() defined?
onConnectionError() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionHandler.java at line 677.
What does onConnectionError() call?
onConnectionError() calls 1 function(s): doGracefulShutdown.
What calls onConnectionError()?
onConnectionError() is called by 3 function(s): closeConnectionOnError, onError, processRstStreamWriteResult.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free