Commit Diff
Diff:
71ae2b7d7f9ae7bc02ed072c07100de0027373d6
aa020ad7cd0c4c9e019ff4652499f87ce7e6b59f
Commit:
aa020ad7cd0c4c9e019ff4652499f87ce7e6b59f
Tree:
e49f5eff4f9f26d47a6024fc66803a234ad60158
Author:
jrmu <jrmu@ircnow.org>
Committer:
jrmu <jrmu@ircnow.org>
Date:
Sat Dec 18 08:49:18 2021 UTC
Message:
Increase buffer size to prevent buffer exhaustion
blob - ff8cd226d641b0dced4b398438b74c14f2df983a
blob + 96d97b1c03fd18d97bf1693d63a9d3a22b6b9326
--- src/ngircd/defines.h
+++ src/ngircd/defines.h
@@ -157,10 +157,10 @@
#define WRITEBUFFER_FLUSH_LEN 4096
/** Maximum size of the write buffer of a connection in bytes. */
-#define WRITEBUFFER_MAX_LEN 32768
+#define WRITEBUFFER_MAX_LEN 1048576
/** Maximum size of the write buffer of a server link connection in bytes. */
-#define WRITEBUFFER_SLINK_LEN 65536
+#define WRITEBUFFER_SLINK_LEN 1048576
/* IRC/IRC+ protocol */
IRCNow