[tor-commits] [stegotorus/master] Don't drop a connection that still has data outbound.
zwol at torproject.org
zwol at torproject.org
Fri Jul 20 23:17:08 UTC 2012
commit 47637d7d8b7df5225ad6f2eb4c8b431e7c7f57b1
Author: Zack Weinberg <zackw at cmu.edu>
Date: Wed Jun 20 00:14:38 2012 -0700
Don't drop a connection that still has data outbound.
---
src/protocol/chop.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/protocol/chop.cc b/src/protocol/chop.cc
index 75204f0..8b79167 100644
--- a/src/protocol/chop.cc
+++ b/src/protocol/chop.cc
@@ -1324,7 +1324,7 @@ chop_conn_t::recv_eof()
// cover protocol does not need us to send a reply (i.e. the
// must_send_timer is not pending).
if (upstream && (upstream->sent_fin || no_more_transmissions) &&
- !must_send_p())
+ !must_send_p() && evbuffer_get_length(outbound()) == 0)
upstream->drop_downstream(this);
return 0;
More information about the tor-commits
mailing list