mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-19 20:20:45 +00:00
MINOR: rhttp: add log on connection allocation failure
Add an error log when new_reverse_conn() fails. This may help to diagnose future issues on reverse HTTP.
This commit is contained in:
parent
3efd9f3925
commit
4f80543220
@ -104,6 +104,13 @@ static struct connection *new_reverse_conn(struct listener *l, struct server *sr
|
||||
return conn;
|
||||
|
||||
err:
|
||||
if (l->rx.rhttp.state != LI_PRECONN_ST_ERR) {
|
||||
send_log(l->bind_conf->frontend, LOG_ERR,
|
||||
"preconnect %s::%s: Error on conn allocation.\n",
|
||||
l->bind_conf->frontend->id, l->bind_conf->rhttp_srvname);
|
||||
l->rx.rhttp.state = LI_PRECONN_ST_ERR;
|
||||
}
|
||||
|
||||
if (conn) {
|
||||
conn_stop_tracking(conn);
|
||||
conn_xprt_shutw(conn);
|
||||
|
Loading…
Reference in New Issue
Block a user