From 1d36a8e9ae766f67097f4c5e522c33ff0c4a693f Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 14 Mar 2011 17:48:45 -0400 Subject: Consider sending stream-level SENDME cells on partial flushes. Right now, we only consider sending stream-level SENDME cells when we have completely flushed a connection_edge's outbuf, or when it sends us a DATA cell. Neither of these is ideal for throughput. This patch changes the behavior so we now call connection_edge_consider_sending_sendme when we flush _some_ data from an edge outbuf. Fix for bug 2756; bugfix on svn r152. --- src/or/connection_edge.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/or/connection_edge.h') diff --git a/src/or/connection_edge.h b/src/or/connection_edge.h index fa5f91cf8..0b08dd07c 100644 --- a/src/or/connection_edge.h +++ b/src/or/connection_edge.h @@ -23,6 +23,7 @@ int connection_edge_process_inbuf(edge_connection_t *conn, int connection_edge_destroy(circid_t circ_id, edge_connection_t *conn); int connection_edge_end(edge_connection_t *conn, uint8_t reason); int connection_edge_end_errno(edge_connection_t *conn); +int connection_edge_flushed_some(edge_connection_t *conn); int connection_edge_finished_flushing(edge_connection_t *conn); int connection_edge_finished_connecting(edge_connection_t *conn); -- cgit v1.2.3