Browse Source

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 <rusty@Juno.local>
Rusty Conover 1 năm trước cách đây
mục cha
commit
00bdf73ec6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      httplib.h

+ 1 - 1
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