summaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-10-02 15:11:34 -0400
committerNick Mathewson <nickm@torproject.org>2015-01-14 11:31:12 -0500
commitfb5ebfb50770062c77534d4db4c6a9c5ad475fa0 (patch)
tree52949fe80a637906c13a1f095306a9f1849692e8 /src/or/connection.c
parent6c9c54e7fa8841e3c4d4d24f5933d433171d1112 (diff)
downloadtor-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