aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-03-15 17:18:29 -0400
committerNick Mathewson <nickm@torproject.org>2011-03-15 17:18:29 -0400
commit737228ed8e81de6619a29bd039d08d959d4164da (patch)
treece95515af13ca4e6aa596c01b3575b895d14fb06 /src/or/connection_edge.c
parent4dde69a6d003682217c2bf6327b5923c7b811974 (diff)
parentc5ffd44ccd3c60780143eb384938276522a173c1 (diff)
downloadtor-737228ed8e81de6619a29bd039d08d959d4164da.tar
tor-737228ed8e81de6619a29bd039d08d959d4164da.tar.gz
Merge remote branch 'origin/maint-0.2.2'
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index bb36f0832..dc2598945 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -301,6 +301,23 @@ connection_edge_end_errno(edge_connection_t *conn)
return connection_edge_end(conn, reason);
}
+/** We just wrote some data to <b>conn</b>; act appropriately.
+ *
+ * (That is, if it's open, consider sending a stream-level sendme cell if we
+ * have just flushed enough.)
+ */
+int
+connection_edge_flushed_some(edge_connection_t *conn)
+{
+ switch (conn->_base.state) {
+ case AP_CONN_STATE_OPEN:
+ case EXIT_CONN_STATE_OPEN:
+ connection_edge_consider_sending_sendme(conn);
+ break;
+ }
+ return 0;
+}
+
/** Connection <b>conn</b> has finished writing and has no bytes left on
* its outbuf.
*