[or-cvs] send an end to the streams we close when we hibernate, rather
Roger Dingledine
arma at seul.org
Sun Dec 5 13:02:20 UTC 2004
Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or
Modified Files:
hibernate.c
Log Message:
send an end to the streams we close when we hibernate, rather
than just chopping them off
Index: hibernate.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/hibernate.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- hibernate.c 5 Dec 2004 12:26:02 -0000 1.36
+++ hibernate.c 5 Dec 2004 13:02:18 -0000 1.37
@@ -719,6 +719,8 @@
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);
}
More information about the tor-commits
mailing list