| 961 | ProxyProtocol pp_info; |
| 962 | |
| 963 | void |
| 964 | set_connect_fail(int e) |
| 965 | { |
| 966 | int const original_connect_result = this->current.server->connect_result; |
| 967 | if (e == EUSERS) { |
| 968 | // EUSERS is used when the number of connections exceeds the configured |
| 969 | // limit. Since this is not a network connectivity issue with the |
| 970 | // server, we should not mark it as such. Otherwise we will incorrectly |
| 971 | // mark the server as down. |
| 972 | this->current.server->connect_result = 0; |
| 973 | } else if (e == EIO || this->current.server->connect_result == EIO) { |
| 974 | this->current.server->connect_result = e; |
| 975 | } |
| 976 | if (e != EIO) { |
| 977 | this->cause_of_death_errno = e; |
| 978 | } |
| 979 | Dbg(_dbg_ctl, "Setting upstream connection failure %d to %d", original_connect_result, this->current.server->connect_result); |
| 980 | } |
| 981 | |
| 982 | MgmtInt |
| 983 | configured_connect_attempts_max_retries() const |
no outgoing calls
no test coverage detected