mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
warn on connection failures
svn:r853
This commit is contained in:
parent
2baaac7fdb
commit
774d056c46
2
http.c
2
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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user