summaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
authorKarsten Loesing <karsten.loesing@gmx.net>2009-07-14 22:24:50 +0200
committerKarsten Loesing <karsten.loesing@gmx.net>2009-07-15 16:14:14 +0200
commit416940d93bac49f78b57a2cf561bd324d75b391f (patch)
tree583a474c27bd579a3676657eac04a35764fcc387 /src/or/connection_edge.c
parent85e7f67e1c773e81a0269858169a9992eeb53da6 (diff)
downloadtor-416940d93bac49f78b57a2cf561bd324d75b391f.tar.gz
tor-416940d93bac49f78b57a2cf561bd324d75b391f.zip
Some tweaks to directory request download times.
- Use common prefixes DIRREQ_* and dirreq_*. - Replace enums in structs with bitfields.
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index f32563bcdb..f2b499fd6c 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -2554,7 +2554,7 @@ connection_exit_begin_conn(cell_t *cell, circuit_t *circ)
#ifdef ENABLE_GEOIP_STATS
/* Remember the tunneled request ID in the new edge connection, so that
* we can measure download times. */
- TO_CONN(n_stream)->request_id = circ->request_id;
+ TO_CONN(n_stream)->dirreq_id = circ->dirreq_id;
#endif
n_stream->_base.purpose = EXIT_PURPOSE_CONNECT;
@@ -2795,7 +2795,7 @@ connection_exit_connect_dir(edge_connection_t *exitconn)
#ifdef ENABLE_GEOIP_STATS
/* 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)->request_id = TO_CONN(exitconn)->request_id;
+ TO_CONN(dirconn)->dirreq_id = TO_CONN(exitconn)->dirreq_id;
#endif
connection_link_connections(TO_CONN(dirconn), TO_CONN(exitconn));