diff options
author | Roger Dingledine <arma@torproject.org> | 2004-12-05 13:02:18 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-12-05 13:02:18 +0000 |
commit | f21564eb29ec1afe47bdb719b7a4016e274a45ec (patch) | |
tree | 67b299e59b05af62801a211ba6a158bb05965068 /src | |
parent | 1c9c813866d3ee5b71577694824fbe7ed1ab4f3b (diff) | |
download | tor-f21564eb29ec1afe47bdb719b7a4016e274a45ec.tar.gz tor-f21564eb29ec1afe47bdb719b7a4016e274a45ec.zip |
send an end to the streams we close when we hibernate, rather
than just chopping them off
svn:r3083
Diffstat (limited to 'src')
-rw-r--r-- | src/or/hibernate.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |