X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git;a=blobdiff_plain;f=src%2Fngircd%2Fdefines.h;h=7ce30e572862f8cd04fb05ced54ec4d072e53e47;hp=ff8cd226d641b0dced4b398438b74c14f2df983a;hb=c6e3c13f27744971fcb1d2de4e561d3bcdaa5aed;hpb=04de1423eb26da60c192d343a7e7a6bcda2aca37 diff --git a/src/ngircd/defines.h b/src/ngircd/defines.h index ff8cd226..7ce30e57 100644 --- a/src/ngircd/defines.h +++ b/src/ngircd/defines.h @@ -153,6 +153,12 @@ /** Size of the read buffer of a connection in bytes. */ #define READBUFFER_LEN 2048 +/** Maximum size of the read buffer of a connection in bytes. */ +#define READBUFFER_MAX_LEN 65535 + +/** Maximum size of the read buffer of a server link connection in bytes. */ +#define READBUFFER_SLINK_LEN 65536 + /** Size that triggers write buffer flushing if more space is needed. */ #define WRITEBUFFER_FLUSH_LEN 4096 @@ -160,7 +166,7 @@ #define WRITEBUFFER_MAX_LEN 32768 /** Maximum size of the write buffer of a server link connection in bytes. */ -#define WRITEBUFFER_SLINK_LEN 65536 +#define WRITEBUFFER_SLINK_LEN READBUFFER_SLINK_LEN /* IRC/IRC+ protocol */