[or-cvs] r9142: write-limiting fix: avoid a rare bug where we don't remember (tor/trunk/src/or)
arma at seul.org
arma at seul.org
Sat Dec 16 11:36:38 UTC 2006
Author: arma
Date: 2006-12-16 06:36:36 -0500 (Sat, 16 Dec 2006)
New Revision: 9142
Modified:
tor/trunk/src/or/connection_or.c
Log:
write-limiting fix: avoid a rare bug where we don't remember
that there's stuff on the outbuf we want to flush.
Modified: tor/trunk/src/or/connection_or.c
===================================================================
--- tor/trunk/src/or/connection_or.c 2006-12-16 11:34:12 UTC (rev 9141)
+++ tor/trunk/src/or/connection_or.c 2006-12-16 11:36:36 UTC (rev 9142)
@@ -714,6 +714,7 @@
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. */
More information about the tor-commits
mailing list