mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-02 01:20:49 +00:00
MINOR: unix: don't mention free ports on EAGAIN
When a connect() to a unix socket returns EAGAIN we talk about "no free ports" in the error/debug message, which only makes sense when using TCP. Explain connect() failure and suggest troubleshooting server backlog size.
This commit is contained in:
parent
79c1e912bb
commit
9f256d4d85
@ -504,7 +504,7 @@ int uxst_connect_server(struct connection *conn, int data, int delack)
|
|||||||
else if (errno == EAGAIN || errno == EADDRINUSE || errno == EADDRNOTAVAIL) {
|
else if (errno == EAGAIN || errno == EADDRINUSE || errno == EADDRNOTAVAIL) {
|
||||||
char *msg;
|
char *msg;
|
||||||
if (errno == EAGAIN || errno == EADDRNOTAVAIL) {
|
if (errno == EAGAIN || errno == EADDRNOTAVAIL) {
|
||||||
msg = "no free ports";
|
msg = "can't connect to destination unix socket, check backlog size on the server";
|
||||||
conn->err_code = CO_ER_FREE_PORTS;
|
conn->err_code = CO_ER_FREE_PORTS;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user