From: chansikpark Date: Thu, 30 Oct 2025 18:22:23 +0000 (-0400) Subject: server : bump request URI max length to 32768 (#16862) X-Git-Tag: upstream/0.0.7011~120 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=16724b5b6836a2d4b8936a5824d2ff27c52b4517;p=pkg%2Fggml%2Fsources%2Fllama.cpp server : bump request URI max length to 32768 (#16862) --- diff --git a/tools/server/utils.hpp b/tools/server/utils.hpp index fb95361b..b6198edf 100644 --- a/tools/server/utils.hpp +++ b/tools/server/utils.hpp @@ -13,6 +13,8 @@ #define CPPHTTPLIB_FORM_URL_ENCODED_PAYLOAD_MAX_LENGTH 1048576 // increase backlog size to avoid connection resets for >> 1 slots #define CPPHTTPLIB_LISTEN_BACKLOG 512 +// increase max URI length to handle longer prompts in query string +#define CPPHTTPLIB_REQUEST_URI_MAX_LENGTH 32768 // disable Nagle's algorithm #define CPPHTTPLIB_TCP_NODELAY true #include