mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-20 04:37:04 +00:00
[BUG] connect_server: server might not exist when sending error report
In connect_server(), we may send an alert with the server name while the server might not exist, eg in dispatch mode.
This commit is contained in:
parent
844e3c53da
commit
fe10a0619d
@ -1242,8 +1242,8 @@ int connect_server(struct session *s)
|
||||
Alert("Cannot bind to source address before connect() for proxy %s. Aborting.\n", s->be->id);
|
||||
close(fd);
|
||||
send_log(s->be, LOG_EMERG,
|
||||
"Cannot bind to source address before connect() for server %s/%s.\n",
|
||||
s->be->id, s->srv->id);
|
||||
"Cannot bind to source address before connect() for proxy %s.\n",
|
||||
s->be->id);
|
||||
return SN_ERR_RESOURCE;
|
||||
}
|
||||
#ifdef CONFIG_HAP_CTTPROXY
|
||||
@ -1276,8 +1276,8 @@ int connect_server(struct session *s)
|
||||
s->be->id);
|
||||
close(fd);
|
||||
send_log(s->be, LOG_EMERG,
|
||||
"Cannot bind to tproxy source address before connect() for server %s/%s.\n",
|
||||
s->be->id, s->srv->id);
|
||||
"Cannot bind to tproxy source address before connect() for proxy %s.\n",
|
||||
s->be->id);
|
||||
return SN_ERR_RESOURCE;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user