From: Vsevolod Stakhov Date: Thu, 19 Sep 2019 16:08:31 +0000 (+0100) Subject: [Minor] Fix default value for dns_timeout X-Git-Tag: 2.0~174 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c9ae6817d369d40d427b14a158b9f1a3d687d12d;p=rspamd.git [Minor] Fix default value for dns_timeout --- diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index 59783dd55..25015c269 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -128,7 +128,7 @@ rspamd_config_new (enum rspamd_config_init_flags flags) cfg = g_malloc0 (sizeof (*cfg)); /* Allocate larger pool for cfg */ cfg->cfg_pool = rspamd_mempool_new (8 * 1024 * 1024, "cfg"); - cfg->dns_timeout = 1000; + cfg->dns_timeout = 1.0; cfg->dns_retransmits = 5; /* 16 sockets per DNS server */ cfg->dns_io_per_server = 16;