diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2010-04-04 03:34:42 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-09-27 14:22:18 -0400 |
commit | 865bea3b895831a486b024e90f58d72d025ce284 (patch) | |
tree | 2e41a80cff9959d8b25f896b0d82398ab4b1ea16 /src/common | |
parent | beb52352f2aeefb69ae2ee67e4e456346e28e40e (diff) | |
download | tor-865bea3b895831a486b024e90f58d72d025ce284.tar tor-865bea3b895831a486b024e90f58d72d025ce284.tar.gz |
Some bufferevents related fixes and pointers for nickm
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/compat_libevent.c | 4 | ||||
-rw-r--r-- | src/common/tortls.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/common/compat_libevent.c b/src/common/compat_libevent.c index 2ae280e66..ee8b5b561 100644 --- a/src/common/compat_libevent.c +++ b/src/common/compat_libevent.c @@ -554,7 +554,9 @@ periodic_timer_free(periodic_timer_t *timer) #ifdef USE_BUFFEREVENTS static const struct timeval *one_tick = NULL; /** - DOCDOC + * Return a special timeout to be passed whenever libevent's O(1) timeout + * implementation should be used. Only use this when the timer is supposed + * to fire after 1 / TOR_LIBEVENT_TICKS_PER_SECOND seconds have passed. */ const struct timeval *tor_libevent_get_one_tick_timeout(void) { diff --git a/src/common/tortls.c b/src/common/tortls.c index 3ae3ef883..fb2e9ed49 100644 --- a/src/common/tortls.c +++ b/src/common/tortls.c @@ -1206,7 +1206,7 @@ tor_tls_handshake(tor_tls_t *tls) } /** Perform the final part of the intial TLS handshake on <b>tls</b>. This - * should be called for the first handshake only: it determiens whether the v1 + * should be called for the first handshake only: it determines whether the v1 * or the v2 handshake was used, and adjusts things for the renegotiation * handshake as appropriate. * |