summary refs log tree commit diff
path: root/config.h
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2026-02-01 18:09:54 +0300
committerNakidai <nakidai@disroot.org>2026-02-01 18:09:54 +0300
commitf47f9d10f8aa3ace1f2d93d0aa6ab090f782328b (patch)
tree44e49c0f2a98e6ba90d7ec79591e51bfd7719a93 /config.h
parent62869d341d2a4e959b60865076287701694859dd (diff)
downloadlibreircd-f47f9d10f8aa3ace1f2d93d0aa6ab090f782328b.tar.gz
libreircd-f47f9d10f8aa3ace1f2d93d0aa6ab090f782328b.zip
Add ping system
Now users will be kicked for inactivity o.o
Diffstat (limited to 'config.h')
-rw-r--r--config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.h b/config.h
index 19d2958..a1a8c4a 100644
--- a/config.h
+++ b/config.h
@@ -13,3 +13,7 @@
 #define PEER_USER_MAX 16
 #define PEER_REAL_MAX 32
 #define PEER_HOST_MAX 64
+#define PEER_PINGTIMEOUT 120
+#define PEER_PONGTIMEOUT 20
+
+#define POLL_TIMEOUT PEER_PINGTIMEOUT