Skip to content

Commit cf756d6

Browse files
authored
server : disable Nagle's algorithm (#12020)
1 parent d709084 commit cf756d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/server/utils.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
// increase max payload length to allow use of larger context size
99
#define CPPHTTPLIB_FORM_URL_ENCODED_PAYLOAD_MAX_LENGTH 1048576
10+
// disable Nagle's algorithm
11+
#define CPPHTTPLIB_TCP_NODELAY true
1012
#include "httplib.h"
1113

1214
// Change JSON_ASSERT from assert() to GGML_ASSERT:

0 commit comments

Comments
 (0)