SCANPORT 6667
+
+
+# TIMEOUT <seconds> : Number of seconds before a particular scan on a client
+# will timeout. The higher this is set, the more chance of
+# slower proxies being caught. However a higher value also means
+# more demand for file descriptors at any one time.
+# A default value of 30 is recommended.
+
+TIMEOUT 30
+
+
+
+
# TARGET_STRING <string> : Target string we test for in the data read by the scanner,
# this should be a string within the data that your ircd usually
# sends on connect. The default should work on most bahamut
unsigned int CONF_SCANPORT = 0;
unsigned int CONF_PORT = 0;
unsigned int CONF_FDLIMIT = 0;
+unsigned int CONF_TIMEOUT = 0;
/* Configuration Hash , Hashes Config Params to their Function Handlers*/
/* NAME , TYPE , REQ, REQMET, PTR TO VAR */
{"AWAY", TYPE_STRING, 1,0, &CONF_AWAY },
{"TARGET_STRING", TYPE_STRING, 1,0, &CONF_TARGET_STRING },
{"EXCLUDE", TYPE_LIST, 0,0, &CONF_EXCLUDE },
+ {"TIMEOUT", TYPE_INT, 1,0, &CONF_TIMEOUT },
{0, 0, 0,0, 0 },
};
extern unsigned int CONF_PORT;
extern unsigned int CONF_SCANPORT;
extern unsigned int CONF_FDLIMIT;
+extern unsigned int CONF_TIMEOUT;
extern unsigned int OPT_DEBUG;
}
}
- if (((present - ss->create_time) >= 30) ||
+ if (((present - ss->create_time) >= CONF_TIMEOUT) ||
(ss->state == STATE_CLOSED)) {
/* State closed or timed out, remove */
if (ss->verbose && (ss->state != STATE_CLOSED)) {