mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-11 21:34:53 -04: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) {
|
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;
|
EVUTIL_CLOSESOCKET(evcon->fd); evcon->fd = -1;
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user