]> granicus.if.org Git - libevent/commitdiff
warn on connection failures
authorNiels Provos <provos@gmail.com>
Tue, 17 Jun 2008 01:14:58 +0000 (01:14 +0000)
committerNiels Provos <provos@gmail.com>
Tue, 17 Jun 2008 01:14:58 +0000 (01:14 +0000)
svn:r853

http.c

diff --git a/http.c b/http.c
index 7d74942893be2d9cf779593743aac0c8d88aeaab..165c64db107d4af2a20e946692573df9460aff1e 100644 (file)
--- 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);
        }