comparison src/dnsbl.cpp @ 132:ae9daf43d8eb

uribl lookups fully qualified; allow two component host names
author carl
date Tue, 01 Aug 2006 10:58:01 -0700
parents df355d117199
children f9917ce924a3
comparison
equal deleted inserted replaced
131:df355d117199 132:ae9daf43d8eb
86 pthread_mutex_t syslog_mutex; 86 pthread_mutex_t syslog_mutex;
87 pthread_mutex_t resolve_mutex; 87 pthread_mutex_t resolve_mutex;
88 pthread_mutex_t fd_pool_mutex; 88 pthread_mutex_t fd_pool_mutex;
89 89
90 std::set<int> fd_pool; 90 std::set<int> fd_pool;
91 const int NULL_SOCKET = -1; 91 int NULL_SOCKET = -1;
92 const time_t ERROR_SOCKET_TIME = 60; // number of seconds between attempts to open a socket to the dns resolver process 92 const time_t ERROR_SOCKET_TIME = 60; // number of seconds between attempts to open a socket to the dns resolver process
93 char *resolver_port = NULL; // unix domain socket to talk to the dns resolver process 93 char *resolver_port = NULL; // unix domain socket to talk to the dns resolver process
94 int resolver_socket = NULL_SOCKET; // socket used to listen for resolver requests 94 int resolver_socket = NULL_SOCKET; // socket used to listen for resolver requests
95 time_t last_error_time; 95 time_t last_error_time;
96 int resolver_sock_count = 0; // protected with fd_pool_mutex 96 int resolver_sock_count = 0; // protected with fd_pool_mutex