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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/proto_uxst.c b/src/proto_uxst.c
index 7cc63c0..b2a7fe2 100644
--- a/src/proto_uxst.c
+++ b/src/proto_uxst.c
@@ -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 {
-- 
1.9.1


Reply via email to