Home / Function/ setConnectFailure() — netty Function Reference

setConnectFailure() — netty Function Reference

Architecture documentation for the setConnectFailure() function in ProxyHandler.java from the netty codebase.

Function java Buffer Allocators calls 4 called by 4

Entity Profile

Dependency Diagram

graph TD
  e5452aa5_fc3e_4478_6f1c_39e017cd9292["setConnectFailure()"]
  3f5c9c39_cf82_6deb_e43b_1a9ad5499a99["ProxyHandler"]
  e5452aa5_fc3e_4478_6f1c_39e017cd9292 -->|defined in| 3f5c9c39_cf82_6deb_e43b_1a9ad5499a99
  3700afc1_1278_9142_32f8_fc09a8d61980["sendInitialMessage()"]
  3700afc1_1278_9142_32f8_fc09a8d61980 -->|calls| e5452aa5_fc3e_4478_6f1c_39e017cd9292
  4e382f83_20d7_a989_f0ad_c2b97c1eda9b["channelInactive()"]
  4e382f83_20d7_a989_f0ad_c2b97c1eda9b -->|calls| e5452aa5_fc3e_4478_6f1c_39e017cd9292
  377adf76_fd63_1eae_a710_4f6de9ec8f9d["exceptionCaught()"]
  377adf76_fd63_1eae_a710_4f6de9ec8f9d -->|calls| e5452aa5_fc3e_4478_6f1c_39e017cd9292
  f71d1b6f_991f_8b73_bb78_675b65214707["channelRead()"]
  f71d1b6f_991f_8b73_bb78_675b65214707 -->|calls| e5452aa5_fc3e_4478_6f1c_39e017cd9292
  328894d0_bee6_45f1_df68_901e71965fde["cancelConnectTimeoutFuture()"]
  e5452aa5_fc3e_4478_6f1c_39e017cd9292 -->|calls| 328894d0_bee6_45f1_df68_901e71965fde
  a3c87264_9e04_d235_a76b_def97aa550e7["safeRemoveDecoder()"]
  e5452aa5_fc3e_4478_6f1c_39e017cd9292 -->|calls| a3c87264_9e04_d235_a76b_def97aa550e7
  dea41db8_eaaa_a763_38f0_d529f90bc538["safeRemoveEncoder()"]
  e5452aa5_fc3e_4478_6f1c_39e017cd9292 -->|calls| dea41db8_eaaa_a763_38f0_d529f90bc538
  836da478_f946_4379_526a_81d89011dd4b["failPendingWritesAndClose()"]
  e5452aa5_fc3e_4478_6f1c_39e017cd9292 -->|calls| 836da478_f946_4379_526a_81d89011dd4b
  style e5452aa5_fc3e_4478_6f1c_39e017cd9292 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler-proxy/src/main/java/io/netty/handler/proxy/ProxyHandler.java lines 332–347

    private void setConnectFailure(Throwable cause) {
        finished = true;
        cancelConnectTimeoutFuture();

        if (!connectPromise.isDone()) {

            if (!(cause instanceof ProxyConnectException)) {
                cause = new ProxyConnectException(
                        exceptionMessage(cause.toString()), cause);
            }

            safeRemoveDecoder();
            safeRemoveEncoder();
            failPendingWritesAndClose(cause);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does setConnectFailure() do?
setConnectFailure() is a function in the netty codebase, defined in handler-proxy/src/main/java/io/netty/handler/proxy/ProxyHandler.java.
Where is setConnectFailure() defined?
setConnectFailure() is defined in handler-proxy/src/main/java/io/netty/handler/proxy/ProxyHandler.java at line 332.
What does setConnectFailure() call?
setConnectFailure() calls 4 function(s): cancelConnectTimeoutFuture, failPendingWritesAndClose, safeRemoveDecoder, safeRemoveEncoder.
What calls setConnectFailure()?
setConnectFailure() is called by 4 function(s): channelInactive, channelRead, exceptionCaught, sendInitialMessage.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free