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/common/util.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/common/util.c')
-rw-r--r-- | src/common/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c index a66edf4332..ff658b7069 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -1914,7 +1914,7 @@ get_interface_address(int severity, uint32_t *addr) tor_assert(addr); *addr = 0; - sock = socket(PF_INET,SOCK_DGRAM,IPPROTO_UDP); + sock = tor_open_socket(PF_INET,SOCK_DGRAM,IPPROTO_UDP); if (sock < 0) { int e = tor_socket_errno(-1); log_fn(severity, LD_NET, "unable to create socket: %s", |