From 774d056c46dbe7c3075b2628f7d57c514d404249 Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Tue, 17 Jun 2008 01:14:58 +0000 Subject: [PATCH] warn on connection failures svn:r853 --- http.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/http.c b/http.c index 7d749428..165c64db 100644 --- a/http.c +++ b/http.c @@ -1574,6 +1574,8 @@ evhttp_connection_connect(struct evhttp_connection *evcon) } if (socket_connect(evcon->fd, evcon->address, evcon->port) == -1) { + event_warn("%s: connection to \"%s\" failed", + __func__, evcon->address); EVUTIL_CLOSESOCKET(evcon->fd); evcon->fd = -1; return (-1); }