summaryrefslogtreecommitdiff
path: root/src/or/connection_or.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-12-16 11:36:36 +0000
committerRoger Dingledine <arma@torproject.org>2006-12-16 11:36:36 +0000
commitb3b75a3beff4501d9ebbe6db46b9ffa3854e3e29 (patch)
treeb888cb9ad91605617a75bf52314ff0041096ee20 /src/or/connection_or.c
parent0cc7eaf3025aa3593b78dadb2c244dc99942bf38 (diff)
downloadtor-b3b75a3beff4501d9ebbe6db46b9ffa3854e3e29.tar.gz
tor-b3b75a3beff4501d9ebbe6db46b9ffa3854e3e29.zip
write-limiting fix: avoid a rare bug where we don't remember
that there's stuff on the outbuf we want to flush. svn:r9142
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r--src/or/connection_or.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index d60b9b8bd1..2d752d0e8b 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -714,6 +714,7 @@ connection_or_write_cell_to_buf(const cell_t *cell, or_connection_t *conn)
conn->_base.outbuf_flushlen >= MIN_TLS_FLUSHLEN) {
int extra = conn->_base.outbuf_flushlen - MIN_TLS_FLUSHLEN;
conn->_base.outbuf_flushlen = MIN_TLS_FLUSHLEN;
+ connection_start_writing(TO_CONN(conn));
if (connection_handle_write(TO_CONN(conn)) < 0) {
if (!conn->_base.marked_for_close) {
/* this connection is broken. remove it. */