Increasing max send/receive sizes for REST server to 4G

This commit is contained in:
Ian Roddis
2021-09-16 10:07:06 -03:00
parent 0c1a634ffa
commit e895103b1c

View File

@@ -15,7 +15,9 @@ namespace daggy {
void Server::init(int threads) {
auto opts = Http::Endpoint::options()
.threads(threads)
.flags(Pistache::Tcp::Options::ReuseAddr | Pistache::Tcp::Options::ReusePort);
.flags(Pistache::Tcp::Options::ReuseAddr | Pistache::Tcp::Options::ReusePort)
.maxRequestSize(4294967296)
.maxResponseSize(4294967296);
endpoint_.init(opts);
createDescription();
}