Stop trying to resolve our hostname so often
commit17089302fdb454e03f173cc0c70c5a69c5c1cd7b
authorRoger Dingledine <arma@torproject.org>
Tue, 12 Feb 2013 02:48:18 +0000 (11 21:48 -0500)
committerRoger Dingledine <arma@torproject.org>
Tue, 12 Feb 2013 02:48:18 +0000 (11 21:48 -0500)
treeeecc79b0e5e855f856d981ea23ca32ec5eff471c
parentcc896f7c84c221d7dcfff1e0155533dce3ac5518
Stop trying to resolve our hostname so often

For example, we were doing a resolve every time we think about doing a
directory fetch. Now we reuse the cached answer in some cases.

Fixes bugs 1992 (bugfix on 0.2.0.20-rc) and 2410 (bugfix on
0.1.2.2-alpha).
changes/bug1992 [new file with mode: 0644]
src/or/router.c