]> granicus.if.org Git - libevent/commit
Fix a 100%-CPU bug where an SSL connection would sometimes never stop trying to write
authorNick Mathewson <nickm@torproject.org>
Wed, 20 Oct 2010 17:41:02 +0000 (13:41 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 20 Oct 2010 17:41:02 +0000 (13:41 -0400)
commit1213d3dd8b477faa80b4828e16edc467d1007f20
treee9913e61ed9fdfca2cc731ce6971675fc9fbb02c
parentf13e449b531bb14d076e28660e2d33fb6fb255ab
Fix a 100%-CPU bug where an SSL connection would sometimes never stop trying to write

If an SSL connection becamse disabled or suspended before became open,
it could (under the right circumstances) wind up without ever getting
its write callback disabled.

The most correct fix is probably more subtle, and involves checking
all caseswhen a write callback is enabled or disabled.  This fix is
more blunt, and explicitly checks whether the callback should have
been disabled at the end of the callback to prevent infinite looping.

Diagnosed with help from Sebastian Hahn
bufferevent_openssl.c