Skip to content

Commit 213f011

Browse files
ggerganovmostlyuseful
authored andcommitted
server : disable Nagle's algorithm (ggml-org#12020)
1 parent cc178c8 commit 213f011

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)