diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-05-09 12:18:04 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-05-09 12:18:39 -0400 |
commit | c0feb698a0ab8574019d23cbd3060eb0513489c4 (patch) | |
tree | 20eb84a168e535513bf2f6c3fcb5cdcafbd02891 /src/or/connection_edge.c | |
parent | 50328533e3595b9cc2d3fc72f81f56572c9e732d (diff) | |
download | tor-c0feb698a0ab8574019d23cbd3060eb0513489c4.tar.gz tor-c0feb698a0ab8574019d23cbd3060eb0513489c4.zip |
Comment-only fix: annotate we_are_hibernating() usage
Everywhere we use we_are_hibernating(), remind the reader what it
means.
(Also, add an XXXX to note a DisableNetwork usage to change later.)
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r-- | src/or/connection_edge.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 5ae1538bfe..28e18aa853 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -3537,6 +3537,7 @@ connection_exit_begin_conn(cell_t *cell, circuit_t *circ) n_stream->base_.state = EXIT_CONN_STATE_RESOLVEFAILED; /* default to failed, change in dns_resolve if it turns out not to fail */ + /* If we're hibernating or shutting down, we refuse to open new streams. */ if (we_are_hibernating()) { relay_send_end_cell_from_edge(rh.stream_id, circ, END_STREAM_REASON_HIBERNATING, NULL); |