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_edge.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_edge.c')
-rw-r--r-- | src/or/connection_edge.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 3b399d9bd1..1df576d636 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -2544,9 +2544,11 @@ connection_exit_begin_conn(cell_t *cell, circuit_t *circ) log_debug(LD_EXIT,"Creating new exit connection."); n_stream = edge_connection_new(CONN_TYPE_EXIT, AF_INET); + /* Remember the tunneled request ID in the new edge connection, so that * we can measure download times. */ TO_CONN(n_stream)->dirreq_id = circ->dirreq_id; + n_stream->_base.purpose = EXIT_PURPOSE_CONNECT; n_stream->stream_id = rh.stream_id; @@ -2786,6 +2788,7 @@ connection_exit_connect_dir(edge_connection_t *exitconn) /* Note that the new dir conn belongs to the same tunneled request as * the edge conn, so that we can measure download times. */ TO_CONN(dirconn)->dirreq_id = TO_CONN(exitconn)->dirreq_id; + connection_link_connections(TO_CONN(dirconn), TO_CONN(exitconn)); if (connection_add(TO_CONN(exitconn))<0) { |