diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-04-21 17:24:18 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-04-21 17:24:18 +0000 |
commit | 227b2e0226445d0c4f39572f51f55451f9fa90f3 (patch) | |
tree | 2c1fb15b829e3fc1e21ec29c1c5e9f28c7d02dbc /src/tools/tor-resolve.c | |
parent | 671b990f5168771051b251162698354ebbf39a6c (diff) | |
download | tor-227b2e0226445d0c4f39572f51f55451f9fa90f3.tar.gz tor-227b2e0226445d0c4f39572f51f55451f9fa90f3.zip |
r12759@Kushana: nickm | 2007-04-20 08:47:20 -0400
Track the number of connection_t separately from the number of open sockets. It is already possible to have connections that do not count: resolving conns, for one. Once we move from socketpairs to linked conns, and once we do dns proxying, there will be lots of such connections.
svn:r9994
Diffstat (limited to 'src/tools/tor-resolve.c')
-rw-r--r-- | src/tools/tor-resolve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/tor-resolve.c b/src/tools/tor-resolve.c index 25a14a4660..71639140f8 100644 --- a/src/tools/tor-resolve.c +++ b/src/tools/tor-resolve.c @@ -153,7 +153,7 @@ do_resolve(const char *hostname, uint32_t sockshost, uint16_t socksport, *result_addr = 0; *result_hostname = NULL; - s = socket(PF_INET,SOCK_STREAM,IPPROTO_TCP); + s = tor_open_socket(PF_INET,SOCK_STREAM,IPPROTO_TCP); if (s<0) { log_sock_error("creating_socket", -1); return -1; |