Stop libevent from reading data from closed connections.

Code adapted from Rob's proposed patch in #30344.

Also add a comment in connection_mark_for_close_internal_() on why we should
not be adding extra code there without a very good reason.
This commit is contained in:
George Kadianakis
2019-09-30 18:29:00 +03:00
committed by Nick Mathewson
parent 7b9cb4c47b
commit 841cff6e4f
3 changed files with 26 additions and 6 deletions
+4
View File
@@ -0,0 +1,4 @@
o Minor bugfixes (connection):
- Avoid reading data from closed connections, which can cause needless
loops in libevent and infinite loops in Shadow. Fixes bug 30344; bugfix
on 0.1.1.1-alpha.