diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2009-08-18 15:53:08 +0200 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2009-08-18 15:53:08 +0200 |
commit | dccadb30cd1ceddb9063ba074ba75bf07575e407 (patch) | |
tree | 1258117decd8f413dde50e9bb2b6e2cc69cf5c04 /src/or/connection.c | |
parent | 799af41157c74922a8cc7889510e4b1b040ea215 (diff) | |
download | tor-dccadb30cd1ceddb9063ba074ba75bf07575e407.tar.gz tor-dccadb30cd1ceddb9063ba074ba75bf07575e407.zip |
Clean up proposal 166 and its implementation.
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index af4d1349ba..48f8278573 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -2302,11 +2302,13 @@ connection_handle_write(connection_t *conn, int force) /* else open, or closing */ result = flush_buf_tls(or_conn->tls, conn->outbuf, max_to_write, &conn->outbuf_flushlen); + /* If we just flushed the last bytes, check if this tunneled dir * request is done. */ if (buf_datalen(conn->outbuf) == 0 && conn->dirreq_id) geoip_change_dirreq_state(conn->dirreq_id, DIRREQ_TUNNELED, DIRREQ_OR_CONN_BUFFER_FLUSHED); + switch (result) { CASE_TOR_TLS_ERROR_ANY: case TOR_TLS_CLOSE: |