From 00bdf73ec63c824b6cfc46050b94ef8fbff952d6 Mon Sep 17 00:00:00 2001 From: Rusty Conover Date: Tue, 9 Apr 2024 16:59:07 -0400 Subject: [PATCH] fix: increase default receive buffer to 16kb (#1814) Since TLS packets have a maximum size of 16kb it makes sense to fully accommodate them on reads. Co-authored-by: Rusty Conover --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index b4363f6..8ef9a70 100644 --- a/httplib.h +++ b/httplib.h @@ -91,7 +91,7 @@ #endif #ifndef CPPHTTPLIB_RECV_BUFSIZ -#define CPPHTTPLIB_RECV_BUFSIZ size_t(4096u) +#define CPPHTTPLIB_RECV_BUFSIZ size_t(16384u) #endif #ifndef CPPHTTPLIB_COMPRESSION_BUFSIZ