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

karsten at torproject.org karsten at torproject.org
Thu Feb 24 14:31:31 UTC 2011


commit 34362200e773ad22c893079a933df558e330d49a
Author: Mike Perry <mikeperry-git at fscked.org>
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





More information about the tor-commits mailing list