Increasing max send/receive sizes for REST server to 4G
This commit is contained in:
1 parent
0c1a634ffa
commit
e895103b1c
1 file changed
+3
-1
@@ -15,7 +15,9 @@ namespace daggy {
|
|||||||
void Server::init(int threads) {
|
void Server::init(int threads) {
|
||||||
auto opts = Http::Endpoint::options()
|
auto opts = Http::Endpoint::options()
|
||||||
.threads(threads)
|
.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);
|
endpoint_.init(opts);
|
||||||
createDescription();
|
createDescription();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user