-- Noteworthy changes in version 1.0.8 (2015-??-??)
-o) Added options::reconnectinterval configuration option
+o) Added options::reconnectinterval configuration option. See doc/reference.conf
+ for more information.
+o) Further modernizations and cleanups to the build system
+o) HOPM now compiles with -fstack-protector-strong and -fstack-protector,
+ respectively, depending on what the compiler supports
+o) Added new --enable-assert switch to ./configure. assert() statements are now
+ disabled by default and can be enabled with ./configure --enable-assert
+o) Added options::dns_timeout configuration option. See doc/reference.conf
+ for more information.
-- Noteworthy changes in version 1.0.7 (2015-06-06)
-- Noteworthy changes in version 1.0.3 (2015-01-28)
o) Fixed bug where HOPM wouldn't try re-connecting to the server in
- case the connection got lost.
+ case the connection got lost
o) Added irc::notice configuration option
o) Many code cleanups and optimizations
o) Worked towards IPv6 support
o) Fixed reference.conf from causing syntax errors
-o) hopm now uses poll() for I/O event notification instead of select()
+o) HOPM now uses poll() for I/O event notification instead of select()
-- Noteworthy changes in version 1.0.0beta1 (2014-12-25)
*/
dns_fdlimit = 64;
+ /*
+ * Amount of time the resolver waits until a response is received
+ * from a name server.
+ */
+ dns_timeout = 5 seconds;
+
/*
* Put the full path and filename of a logfile here if you wish to log
* every scan done. Normally HOPM only logs successfully detected
CHANNEL { return CHANNEL; }
CONNREGEX { return CONNREGEX; }
DNS_FDLIMIT { return DNS_FDLIMIT; }
+DNS_TIMEOUT { return DNS_TIMEOUT; }
DNSBL_FROM { return DNSBL_FROM; }
DNSBL_TO { return DNSBL_TO; }
EXEMPT { return EXEMPT; }
%token CHANNEL
%token CONNREGEX
%token DNS_FDLIMIT
+%token DNS_TIMEOUT
%token DNSBL_FROM
%token DNSBL_TO
%token EXEMPT
options_negcache_rebuild |
options_pidfile |
options_dns_fdlimit |
+ options_dns_timeout |
options_scanlog |
error;
OptionsItem->dns_fdlimit = $3;
};
+options_dns_timeout: DNS_TIMEOUT '=' timespec ';'
+{
+ OptionsItem->dns_timeout = $3;
+};
+
options_scanlog: SCANLOG '=' STRING ';'
{
xfree(OptionsItem->scanlog);
OptionsItem->negcache_rebuild = 43200;
OptionsItem->pidfile = xstrdup("hopm.pid");
OptionsItem->dns_fdlimit = 50;
+ OptionsItem->dns_timeout = 5;
OptionsItem->scanlog = NULL;
}
time_t negcache;
time_t negcache_rebuild;
unsigned int dns_fdlimit;
+ time_t dns_timeout;
char *pidfile;
char *scanlog;
};
if (p->fd < 0)
continue;
- if (p->fd > 0 && (p->start + FDNS_TIMEOUT) < timenow)
+ if (p->fd > 0 && (p->start + OptionsItem->dns_timeout) < timenow)
{
/* Timed out - remove from list */
list_remove(CONNECTIONS, node);
#define FDNS_CONFIG_PREF HOPM_ETCDIR "/firedns.conf"
/* fallback config file */
#define FDNS_CONFIG_FBCK "/etc/resolv.conf"
-/* Number of seconds to wait for a reply */
-#define FDNS_TIMEOUT 5
/* DNS well known port */
#define FDNS_PORT 53
/* name to IPv4 address */