mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
tiny comment and whitespace fixes
This commit is contained in:
parent
ad7776f66d
commit
471418befb
1 changed files with 3 additions and 3 deletions
|
@ -1796,15 +1796,15 @@ connection_edge_process_relay_cell(cell_t *cell, circuit_t *circ,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Don't allow the other endpoint to request more than our maximim
|
/* Don't allow the other endpoint to request more than our maximum
|
||||||
* (ie initial) stream SENDME window worth of data. Well-behaved
|
* (i.e. initial) stream SENDME window worth of data. Well-behaved
|
||||||
* stock clients will not request more than this max (as per the check
|
* stock clients will not request more than this max (as per the check
|
||||||
* in the while loop of connection_edge_consider_sending_sendme()).
|
* in the while loop of connection_edge_consider_sending_sendme()).
|
||||||
*/
|
*/
|
||||||
if (conn->package_window + STREAMWINDOW_INCREMENT >
|
if (conn->package_window + STREAMWINDOW_INCREMENT >
|
||||||
STREAMWINDOW_START_MAX) {
|
STREAMWINDOW_START_MAX) {
|
||||||
static struct ratelim_t stream_warn_ratelim = RATELIM_INIT(600);
|
static struct ratelim_t stream_warn_ratelim = RATELIM_INIT(600);
|
||||||
log_fn_ratelim(&stream_warn_ratelim,LOG_PROTOCOL_WARN, LD_PROTOCOL,
|
log_fn_ratelim(&stream_warn_ratelim, LOG_PROTOCOL_WARN, LD_PROTOCOL,
|
||||||
"Unexpected stream sendme cell. Closing circ (window %d).",
|
"Unexpected stream sendme cell. Closing circ (window %d).",
|
||||||
conn->package_window);
|
conn->package_window);
|
||||||
return -END_CIRC_REASON_TORPROTOCOL;
|
return -END_CIRC_REASON_TORPROTOCOL;
|
||||||
|
|
Loading…
Add table
Reference in a new issue