summaryrefslogtreecommitdiff
path: root/src/or/hibernate.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-03-01 22:42:31 +0000
committerNick Mathewson <nickm@torproject.org>2005-03-01 22:42:31 +0000
commitafe414f070cee8ce1469fc6db8f51bb9e71c654d (patch)
tree75bf4f5349f0bfd7bab12433b200329f45e91e3a /src/or/hibernate.c
parent4ddf768a4fc98bfc2e18a7076bd0397967e3de5e (diff)
downloadtor-afe414f070cee8ce1469fc6db8f51bb9e71c654d.tar.gz
tor-afe414f070cee8ce1469fc6db8f51bb9e71c654d.zip
Revise all calls to connection_edge_end to avoid sending MISC, and to take errno into account where possible.
svn:r3720
Diffstat (limited to 'src/or/hibernate.c')
-rw-r--r--src/or/hibernate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/hibernate.c b/src/or/hibernate.c
index 1867aec0d9..cb96bf39d6 100644
--- a/src/or/hibernate.c
+++ b/src/or/hibernate.c
@@ -739,7 +739,8 @@ hibernate_go_dormant(time_t now) {
(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);
+ connection_edge_end(conn, END_STREAM_REASON_HIBERNATING,
+ conn->cpath_layer);
log_fn(LOG_INFO,"Closing conn type %d", conn->type);
connection_mark_for_close(conn);
}