aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-04-07 22:41:00 +0000
committerRoger Dingledine <arma@torproject.org>2004-04-07 22:41:00 +0000
commite79a578feca34e01d4d71fa5c824f84fe649993a (patch)
tree7ac5a35bff036d0e4b1695f7ac8615315cbd4923 /src/or/connection.c
parent09e66bbd14ed1f59cf5a79f179536b7f8be87487 (diff)
downloadtor-e79a578feca34e01d4d71fa5c824f84fe649993a.tar
tor-e79a578feca34e01d4d71fa5c824f84fe649993a.tar.gz
if the rend desc cache entry was fetched more than 15 mins ago,
then try to fetch a new one. but if the new fetch fails, use the old one. svn:r1540
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 25b6a8b04..ac3a7d8d6 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -178,9 +178,12 @@ _connection_mark_for_close(connection_t *conn, char reason)
case CONN_TYPE_AP_LISTENER:
case CONN_TYPE_DIR_LISTENER:
case CONN_TYPE_CPUWORKER:
- case CONN_TYPE_DIR:
/* No special processing needed. */
break;
+ case CONN_TYPE_DIR:
+ if(conn->purpose == DIR_PURPOSE_FETCH_RENDDESC)
+ rend_client_desc_fetched(conn->rend_query, 0);
+ break;
case CONN_TYPE_OR:
/* Remember why we're closing this connection. */
if (conn->state != OR_CONN_STATE_OPEN) {