]> prime8.dev >> repos - ttyd.git/commitdiff
Update max_heaser_data deafult from 4K to 20K (#163)
authorShohei Kameda <shoheik@cpan.org>
Tue, 19 Mar 2019 01:51:30 +0000 (10:51 +0900)
committerShuanglei Tao <tsl0922@gmail.com>
Tue, 19 Mar 2019 01:51:30 +0000 (09:51 +0800)
src/server.c

index 2f6be83d8a074c09020ae51b8f80b0ba2bcc7847..9d7703e11c198c0c1b89c1b998b88feab021976b 100644 (file)
@@ -240,6 +240,7 @@ main(int argc, char **argv) {
     info.max_http_header_pool = 16;
     info.options = LWS_SERVER_OPTION_VALIDATE_UTF8 | LWS_SERVER_OPTION_DISABLE_IPV6;
     info.extensions = extensions;
+    info.max_http_header_data = 20480;
 
     int debug_level = LLL_ERR | LLL_WARN | LLL_NOTICE;
     char iface[128] = "";