mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
When hibernating, close connections normally and allow them to flush
Bugfix on 7267 in 0.2.4.7-alpha
This commit is contained in:
parent
d6568bad5e
commit
e57604183c
2 changed files with 5 additions and 1 deletions
3
changes/bug23571
Normal file
3
changes/bug23571
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
o Minor bugfixes (hibernation):
|
||||||
|
- When hibernating, close connections normally and allow them to flush.
|
||||||
|
Bugfix on 7267 in 0.2.4.7-alpha.
|
|
@ -34,6 +34,7 @@ hibernating, phase 2:
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "connection.h"
|
#include "connection.h"
|
||||||
#include "connection_edge.h"
|
#include "connection_edge.h"
|
||||||
|
#include "connection_or.h"
|
||||||
#include "control.h"
|
#include "control.h"
|
||||||
#include "hibernate.h"
|
#include "hibernate.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
@ -914,7 +915,7 @@ hibernate_go_dormant(time_t now)
|
||||||
END_STREAM_REASON_HIBERNATING);
|
END_STREAM_REASON_HIBERNATING);
|
||||||
else if (conn->type == CONN_TYPE_OR) {
|
else if (conn->type == CONN_TYPE_OR) {
|
||||||
if (TO_OR_CONN(conn)->chan) {
|
if (TO_OR_CONN(conn)->chan) {
|
||||||
channel_mark_for_close(TLS_CHAN_TO_BASE(TO_OR_CONN(conn)->chan));
|
connection_or_close_normally(TO_OR_CONN(conn), 0);
|
||||||
} else {
|
} else {
|
||||||
connection_mark_for_close(conn);
|
connection_mark_for_close(conn);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue