diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-10-02 15:11:34 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-01-14 11:31:12 -0500 |
commit | fb5ebfb50770062c77534d4db4c6a9c5ad475fa0 (patch) | |
tree | 52949fe80a637906c13a1f095306a9f1849692e8 /src/or/connection.c | |
parent | 6c9c54e7fa8841e3c4d4d24f5933d433171d1112 (diff) | |
download | tor-fb5ebfb50770062c77534d4db4c6a9c5ad475fa0.tar.gz tor-fb5ebfb50770062c77534d4db4c6a9c5ad475fa0.zip |
Avoid chan/circ linear lookups for requests
The solution I took is to not free a circuit with a pending
uncancellable work item, but rather to set its magic number to a
sentinel value. When we get a work item, we check whether the circuit
has that magic sentinel, and if so, we free it rather than processing
the reply.
Diffstat (limited to 'src/or/connection.c')
0 files changed, 0 insertions, 0 deletions