]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: unix: don't mention free ports on EAGAIN
authorLukas Tribus <luky-37@hotmail.com>
Tue, 26 Jan 2016 19:33:14 +0000 (20:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 26 Jan 2016 20:11:51 +0000 (21:11 +0100)
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.

src/proto_uxst.c

index 7cc63c0de319d3143f8e201edfa8ebb8d19aa4ec..b2a7fe244280ac64836b1fe0a1778ecdaac4dccd 100644 (file)
@@ -504,7 +504,7 @@ int uxst_connect_server(struct connection *conn, int data, int delack)
                else if (errno == EAGAIN || errno == EADDRINUSE || errno == EADDRNOTAVAIL) {
                        char *msg;
                        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;
                        }
                        else {