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:
Roger Dingledine 2003-06-28 06:17:01 +00:00
parent f8203505e1
commit 517b418b5c

View File

@ -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);