We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d0b87a commit d5515dbCopy full SHA for d5515db
src/http_server.cc
@@ -2361,6 +2361,16 @@ HTTPAPIServer::GetContentLength(
2361
", got: " + content_length_c_str)
2362
.c_str());
2363
}
2364
+ catch (const std::out_of_range& oor) {
2365
+ err = TRITONSERVER_ErrorNew(
2366
+ TRITONSERVER_ERROR_INVALID_ARG,
2367
+ (std::string("Unable to parse ") + kContentLengthHeader +
2368
+ ", value is out of range [ " +
2369
+ std::to_string(std::numeric_limits<std::int32_t>::min()) + ", " +
2370
+ std::to_string(std::numeric_limits<std::int32_t>::max()) +
2371
+ " ], got: " + content_length_c_str)
2372
+ .c_str());
2373
+ }
2374
2375
} else {
2376
// The Content-Length doesn't reflect the actual request body size
0 commit comments