[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r9142: write-limiting fix: avoid a rare bug where we don't remember (tor/trunk/src/or)
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] r9142: write-limiting fix: avoid a rare bug where we don't remember (tor/trunk/src/or)
- From: arma@xxxxxxxx
- Date: Sat, 16 Dec 2006 06:36:38 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Sat, 16 Dec 2006 06:36:47 -0500
- Reply-to: or-talk@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
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. */