From 04861d5e62d42e9626c08d74c43b1050e28c8858 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 30 Nov 2010 00:05:54 -0500 Subject: [PATCH] Correctly detect timeouts during http connects --- http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http.c b/http.c index c5150439..8bc6db12 100644 --- a/http.c +++ b/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));