mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
Correctly detect timeouts during http connects
This commit is contained in:
parent
0faaa39592
commit
04861d5e62
2
http.c
2
http.c
@ -1231,7 +1231,7 @@ evhttp_error_cb(struct bufferevent *bufev, short what, void *arg)
|
||||
|
||||
switch (evcon->state) {
|
||||
case EVCON_CONNECTING:
|
||||
if (what == BEV_EVENT_TIMEOUT) {
|
||||
if (what & BEV_EVENT_TIMEOUT) {
|
||||
event_debug(("%s: connection timeout for \"%s:%d\" on %d",
|
||||
__func__, evcon->address, evcon->port,
|
||||
evcon->fd));
|
||||
|
Loading…
x
Reference in New Issue
Block a user