[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [torperf/master] Fix a spurious WARN in extra_data.py



commit 34362200e773ad22c893079a933df558e330d49a
Author: Mike Perry <mikeperry-git@xxxxxxxxxx>
Date:   Wed Feb 23 13:27:49 2011 -0800

    Fix a spurious WARN in extra_data.py
---
 extra_stats.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/extra_stats.py b/extra_stats.py
index fb8d38a..1ae0142 100755
--- a/extra_stats.py
+++ b/extra_stats.py
@@ -127,6 +127,9 @@ class WriteStats(TorCtl.PostEventListener):
       # try to reuse this circuit later... But we should
       # print out a warn above if that happens.
       del self.all_circs[event.circ_id]
+      # Some STREAM FAILED events are paired with a CLOSED, some are not :(
+      if event.status == "FAILED":
+        self.ignore_streams[event.strm_id] = True
     if event.status == 'CLOSED':
       assert not circ.strm_id or circ.stream_failed
       circ.used = True



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits