summaryrefslogtreecommitdiff
path: root/src/common/tortls.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-08-18 15:08:49 -0400
committerNick Mathewson <nickm@torproject.org>2011-08-18 15:16:05 -0400
commitd3653063d30ee8174f6ec330124553c6717fbe9c (patch)
tree8b79ef5db5ab4b85cf5296f26836b21b7210db3e /src/common/tortls.c
parent52e36feda153e70cd08d624df73035b7e59a95ef (diff)
downloadtor-d3653063d30ee8174f6ec330124553c6717fbe9c.tar.gz
tor-d3653063d30ee8174f6ec330124553c6717fbe9c.zip
Automatically use filtering bufferevents with IOCP.
Diffstat (limited to 'src/common/tortls.c')
-rw-r--r--src/common/tortls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c
index 455603030f..2aaa2c49b5 100644
--- a/src/common/tortls.c
+++ b/src/common/tortls.c
@@ -1892,7 +1892,7 @@ tor_tls_init_bufferevent(tor_tls_t *tls, struct bufferevent *bufev_in,
const enum bufferevent_ssl_state state = receiving ?
BUFFEREVENT_SSL_ACCEPTING : BUFFEREVENT_SSL_CONNECTING;
- if (filter) {
+ if (filter || tor_libevent_using_iocp_bufferevents()) {
/* Grab an extra reference to the SSL, since BEV_OPT_CLOSE_ON_FREE
means that the SSL will get freed too.