Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tools/yue-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,8 @@ int main(int argc, char ** argv) {

httplib::Server svr;
g_svr = &svr;
// a recording comes whole in one request body: an hour of 32-bit stereo at 48 kHz is 1.4 GB
svr.set_payload_max_length((size_t) 2 * 1024 * 1024 * 1024);

// SO_REUSEADDR lets us rebind a port still in TIME_WAIT after a restart.
// SO_REUSEPORT is deliberately not set: a second instance on the same port
Expand Down