diff options
author | Roger Dingledine <arma@torproject.org> | 2003-02-14 07:53:55 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-02-14 07:53:55 +0000 |
commit | 3cf02a88f49c5fc01fd13fc910c4d5c5ea4ac098 (patch) | |
tree | 0c91169c7c95cbb79b9b2ca2451b702f4f39d3cf /src/or/main.c | |
parent | 5273e2b88709feabb34dd9db3cac37854903272b (diff) | |
download | tor-3cf02a88f49c5fc01fd13fc910c4d5c5ea4ac098.tar tor-3cf02a88f49c5fc01fd13fc910c4d5c5ea4ac098.tar.gz |
rudimentary dns caching (of both resolves and resolve failures)
serious performance increase over non-caching
svn:r158
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/or/main.c b/src/or/main.c index 7ee1cfda6..1ab3e6aaf 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -159,24 +159,6 @@ connection_t *connection_get_by_type(int type) { return NULL; } -connection_t *connection_get_pendingresolve_by_address(char *address) { - int i; - connection_t *conn; - - for(i=0;i<nfds;i++) { - conn = connection_array[i]; - if(conn->type == CONN_TYPE_EXIT && - conn->state == EXIT_CONN_STATE_RESOLVING && - !strcmp(conn->address, address)) { - return conn; - } - } - return NULL; -} - - - - void connection_watch_events(connection_t *conn, short events) { assert(conn && conn->poll_index < nfds); |