Skip to content

Commit

Permalink
fixes #54: Added --request-payload-limit option for large request sup…
Browse files Browse the repository at this point in the history
…port
  • Loading branch information
kibae committed Jun 28, 2024
1 parent 53492a9 commit 3ea9662
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/standalone/standalone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ int onnxruntime_server::standalone::init_config(int argc, char **argv) {
po_desc.add_options()("help,h", "Produce help message\n");
// env: ONNX_WORKERS
po_desc.add_options()(
"workers", po::value<int>()->default_value(4),
"workers", po::value<long>()->default_value(4),
"env: ONNX_SERVER_WORKERS\nWorker thread pool size.\nDefault: 4"
);
po_desc.add_options()(
"request-payload-limit", po::value<int>()->default_value(1024 * 1024 * 10),
"request-payload-limit", po::value<long>()->default_value(1024 * 1024 * 10),
"env: ONNX_SERVER_REQUEST_PAYLOAD_LIMIT\nHTTP/HTTPS request payload size limit.\nDefault: 1024 * 1024 * 10(10MB)"
);
po_desc.add_options()(
Expand Down

0 comments on commit 3ea9662

Please sign in to comment.