mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
bugfix: a connection-level sendme cell would cause a connection to start
packaging from its buffer, even if the circuit-level package-window was still 0. svn:r360
This commit is contained in:
parent
f8203505e1
commit
517b418b5c
@ -248,8 +248,8 @@ int connection_edge_process_relay_cell(cell_t *cell, circuit_t *circ, connection
|
|||||||
}
|
}
|
||||||
conn->package_window += STREAMWINDOW_INCREMENT;
|
conn->package_window += STREAMWINDOW_INCREMENT;
|
||||||
connection_start_reading(conn);
|
connection_start_reading(conn);
|
||||||
|
if(!circuit_consider_stop_edge_reading(circ, edge_type, layer_hint))
|
||||||
connection_package_raw_inbuf(conn); /* handle whatever might still be on the inbuf */
|
connection_package_raw_inbuf(conn); /* handle whatever might still be on the inbuf */
|
||||||
circuit_consider_stop_edge_reading(circ, edge_type, layer_hint);
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
log_fn(LOG_DEBUG,"unknown relay command %d.",relay_command);
|
log_fn(LOG_DEBUG,"unknown relay command %d.",relay_command);
|
||||||
|
Loading…
Reference in New Issue
Block a user