diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-04-02 15:08:41 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-04-13 10:44:15 -0400 |
commit | 5719dfb48f87a54aeb5982ff03345303bc058ebb (patch) | |
tree | e5b0b89904934b5ba1e316f0217d41c04ec1dcdb /src/tools | |
parent | c5a3e2ca44cfd3302a65ae247120fd4efb81a379 (diff) | |
download | tor-5719dfb48f87a54aeb5982ff03345303bc058ebb.tar.gz tor-5719dfb48f87a54aeb5982ff03345303bc058ebb.zip |
Move the "activate linked connections" logic to a postloop event.
A linked connection_t is one that gets its I/O, not from the
network, but from another connection_t. When such a connection has
something to write, we want the corresponding connection to run its
read callback ... but not immediately, to avoid infinite recursion
and/or event loop starvation.
Previously we handled this case by activating the read events
outside the event loop. Now we use the "postloop event" logic.
This lets us simplify do_main_loop_once() a little.
Diffstat (limited to 'src/tools')
0 files changed, 0 insertions, 0 deletions