Permalink
Browse files

Utilize RES_TIMEOUT as default

Patch by: michaelortmann

Default resolve-timeout was 7 in eggdrop.conf and 15 in source (used if it were commented out in eggdrop.conf). This patch changes the default setting to RES_TIMEOUT (generally 5)
  • Loading branch information...
michaelortmann authored and vanosg committed Oct 15, 2018
1 parent 160734f commit 01141355a00092d32e6874eecd7b891a510c3ed2
Showing with 13 additions and 9 deletions.
  1. +5 −3 eggdrop.conf
  2. +2 −0 help/set/cmds1.help
  3. +6 −6 src/main.c
@@ -375,9 +375,11 @@ set telnet-flood 5:60
# If you want telnet-flood to apply even to +f users, set this setting to 1.
set paranoid-telnet-flood 1
# Set here the amount of seconds before giving up on hostname/address
# lookup (you might want to increase this if you are on a slow network).
set resolve-timeout 7
# Set here the amount of seconds before giving up on hostname/address lookup
# (you might want to increase this if you are on a slow network). The default is
# RES_TIMEOUT, which is generally 5, the allowed maximum is RES_MAXRETRANS (see
# <resolv.h>).
#set resolve-timeout 5
##### SSL SETTINGS #####
@@ -126,6 +126,8 @@
### %bset resolve-timeout%b <seconds>
Set here the amount of seconds before giving up on hostname/address
lookup (you might want to increase this if you are on a slow network).
The default is RES_TIMEOUT, which is generally 5, the allowed maximum is
RES_MAXRETRANS (see <resolv.h>).
%{help=set dupwait-timeout}%{+n}
### %bset dupwait-timeout%b <seconds>
If your Eggdrop rejects bots that actually have already
@@ -47,11 +47,11 @@
#include "main.h"
#include <fcntl.h>
#include <errno.h>
#include <signal.h>
#include <netdb.h>
#include <fcntl.h>
#include <resolv.h>
#include <setjmp.h>
#include <signal.h>
#ifdef TIME_WITH_SYS_TIME
# include <sys/time.h>
@@ -142,9 +142,9 @@ int notify_users_at = 0; /* Minutes past the hour to notify users of notes? */
char version[81]; /* Version info (long form) */
char ver[41]; /* Version info (short form) */
int do_restart = 0; /* .restart has been called, restart ASAP */
int resolve_timeout = 15; /* Hostname/address lookup timeout */
char quit_msg[1024]; /* Quit message */
int do_restart = 0; /* .restart has been called, restart ASAP */
int resolve_timeout = RES_TIMEOUT; /* Hostname/address lookup timeout */
char quit_msg[1024]; /* Quit message */
/* Traffic stats */
unsigned long otraffic_irc = 0;

0 comments on commit 0114135

Please sign in to comment.