pub enum BackendConnectionError {
NotFound(ObjectKind),
MaxConnectionRetries(Option<ClusterId>),
MaxSessionsMemory,
Backend(BackendError),
RetrieveClusterError(RetrieveClusterError),
MaxBuffers,
TooManyConnectionsPerIp {
cluster_id: ClusterId,
},
ReplayRefused(&'static str),
}Variants§
NotFound(ObjectKind)
MaxConnectionRetries(Option<ClusterId>)
MaxSessionsMemory
Backend(BackendError)
RetrieveClusterError(RetrieveClusterError)
MaxBuffers
TooManyConnectionsPerIp
Per-(cluster, source-IP) connection limit reached. The protocol
layer translates this into HTTP 429 Too Many Requests (with an
optional Retry-After) for HTTP/HTTPS sessions, or a graceful TCP
close for raw TCP. The cluster_id is included so log/metric
pipelines can attribute the rejection.
ReplayRefused(&'static str)
A stale-upstream replay could not be carried out. Stream::retry_buffer
holds H1 wire bytes captured under the FIRST attempt’s routing
decision, so the replay is valid only while that decision still holds:
the cluster must still be known and must still speak H1. When it does
not, the protocol layer answers 502 Bad Gateway — the same answer the
stream received before the replay existed (sozu-proxy/sozu#1442) —
rather than framing raw H1 text as an HTTP/2 DATA payload or
re-routing a front kawa whose blocks are already drained.
Trait Implementations§
Source§impl Debug for BackendConnectionError
impl Debug for BackendConnectionError
Source§impl Display for BackendConnectionError
impl Display for BackendConnectionError
Source§impl Error for BackendConnectionError
impl Error for BackendConnectionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()