From: Roger Dingledine Date: Sun, 5 Dec 2004 13:02:18 +0000 (+0000) Subject: send an end to the streams we close when we hibernate, rather X-Git-Tag: tor-0.0.9rc6~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f21564eb29ec1afe47bdb719b7a4016e274a45ec;p=thirdparty%2Ftor.git send an end to the streams we close when we hibernate, rather than just chopping them off svn:r3083 --- diff --git a/src/or/hibernate.c b/src/or/hibernate.c index 18f6cc32c6..d056bee427 100644 --- a/src/or/hibernate.c +++ b/src/or/hibernate.c @@ -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); }