]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
send an end to the streams we close when we hibernate, rather
authorRoger Dingledine <arma@torproject.org>
Sun, 5 Dec 2004 13:02:18 +0000 (13:02 +0000)
committerRoger Dingledine <arma@torproject.org>
Sun, 5 Dec 2004 13:02:18 +0000 (13:02 +0000)
than just chopping them off

svn:r3083

src/or/hibernate.c

index 18f6cc32c66d98c801ddaa55b47e520ecb7be268..d056bee42714176f86d5c451feb3099f93363c0e 100644 (file)
@@ -719,6 +719,8 @@ hibernate_go_dormant(time_t now) {
   while ((conn = connection_get_by_type(CONN_TYPE_OR)) ||
          (conn = connection_get_by_type(CONN_TYPE_AP)) ||
          (conn = connection_get_by_type(CONN_TYPE_EXIT))) {
+    if (CONN_IS_EDGE(conn))
+      connection_edge_end(conn, END_STREAM_REASON_MISC, conn->cpath_layer);
     log_fn(LOG_INFO,"Closing conn type %d", conn->type);
     connection_mark_for_close(conn);
   }