scripts: benchmark for HTTP server throughput (#14668)
* scripts: benchmark for HTTP server throughput * fix server connection reset
This commit is contained in:
parent
0f4c6ec0f1
commit
494c5899cb
4 changed files with 218 additions and 0 deletions
|
|
@ -11,6 +11,8 @@
|
|||
|
||||
// increase max payload length to allow use of larger context size
|
||||
#define CPPHTTPLIB_FORM_URL_ENCODED_PAYLOAD_MAX_LENGTH 1048576
|
||||
// increase backlog size to avoid connection resets for >> 1 slots
|
||||
#define CPPHTTPLIB_LISTEN_BACKLOG 512
|
||||
// disable Nagle's algorithm
|
||||
#define CPPHTTPLIB_TCP_NODELAY true
|
||||
#include <cpp-httplib/httplib.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue