mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 13:43:47 +01:00
whitespace fixes to pass 'make check-spaces'
This commit is contained in:
parent
6a97450cbd
commit
c2775196f7
@ -3846,8 +3846,10 @@ assert_connection_ok(connection_t *conn, time_t now)
|
|||||||
* */
|
* */
|
||||||
tor_assert((conn->type == CONN_TYPE_EXIT &&
|
tor_assert((conn->type == CONN_TYPE_EXIT &&
|
||||||
conn->state == EXIT_CONN_STATE_RESOLVING) ||
|
conn->state == EXIT_CONN_STATE_RESOLVING) ||
|
||||||
connection_is_writing(conn) || conn->write_blocked_on_bw ||
|
connection_is_writing(conn) ||
|
||||||
(CONN_IS_EDGE(conn) && TO_EDGE_CONN(conn)->edge_blocked_on_circ));
|
conn->write_blocked_on_bw ||
|
||||||
|
(CONN_IS_EDGE(conn) &&
|
||||||
|
TO_EDGE_CONN(conn)->edge_blocked_on_circ));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (conn->hold_open_until_flushed)
|
if (conn->hold_open_until_flushed)
|
||||||
|
@ -1032,8 +1032,8 @@ connection_edge_process_relay_cell(cell_t *cell, circuit_t *circ,
|
|||||||
unsigned domain = layer_hint?LD_APP:LD_EXIT;
|
unsigned domain = layer_hint?LD_APP:LD_EXIT;
|
||||||
int reason;
|
int reason;
|
||||||
int optimistic_data = 0; /* Set to 1 if we receive data on a stream
|
int optimistic_data = 0; /* Set to 1 if we receive data on a stream
|
||||||
that's in the EXIT_CONN_STATE_RESOLVING
|
* that's in the EXIT_CONN_STATE_RESOLVING
|
||||||
or EXIT_CONN_STATE_CONNECTING states.*/
|
* or EXIT_CONN_STATE_CONNECTING states. */
|
||||||
|
|
||||||
tor_assert(cell);
|
tor_assert(cell);
|
||||||
tor_assert(circ);
|
tor_assert(circ);
|
||||||
@ -1058,9 +1058,9 @@ connection_edge_process_relay_cell(cell_t *cell, circuit_t *circ,
|
|||||||
(conn->_base.state == EXIT_CONN_STATE_CONNECTING ||
|
(conn->_base.state == EXIT_CONN_STATE_CONNECTING ||
|
||||||
conn->_base.state == EXIT_CONN_STATE_RESOLVING) &&
|
conn->_base.state == EXIT_CONN_STATE_RESOLVING) &&
|
||||||
rh.command == RELAY_COMMAND_DATA) {
|
rh.command == RELAY_COMMAND_DATA) {
|
||||||
/* We're going to allow DATA cells to be delivered to an exit
|
/* Allow DATA cells to be delivered to an exit node in state
|
||||||
* node in state EXIT_CONN_STATE_CONNECTING or
|
* EXIT_CONN_STATE_CONNECTING or EXIT_CONN_STATE_RESOLVING.
|
||||||
* EXIT_CONN_STATE_RESOLVING. This speeds up HTTP, for example. */
|
* This speeds up HTTP, for example. */
|
||||||
optimistic_data = 1;
|
optimistic_data = 1;
|
||||||
} else {
|
} else {
|
||||||
return connection_edge_process_relay_cell_not_open(
|
return connection_edge_process_relay_cell_not_open(
|
||||||
|
Loading…
Reference in New Issue
Block a user