Removing ability for multiple servers to listen to the same address

This commit is contained in:
Ian Roddis
2022-01-07 16:31:07 -04:00
parent 58604d98cd
commit d58dc2fc35
2 changed files with 4 additions and 4 deletions

View File

@@ -34,8 +34,8 @@ namespace daggy::daggyd {
{ {
auto opts = Http::Endpoint::options() auto opts = Http::Endpoint::options()
.threads(threads) .threads(threads)
.flags(Pistache::Tcp::Options::ReuseAddr | // .flags(Pistache::Tcp::Options::ReuseAddr |
Pistache::Tcp::Options::ReusePort) // Pistache::Tcp::Options::ReusePort)
.maxRequestSize(4294967296) .maxRequestSize(4294967296)
.maxResponseSize(4294967296); .maxResponseSize(4294967296);
endpoint_.init(opts); endpoint_.init(opts);

View File

@@ -23,8 +23,8 @@ namespace daggy::daggyr {
{ {
auto opts = Http::Endpoint::options() auto opts = Http::Endpoint::options()
.threads(threads) .threads(threads)
.flags(Pistache::Tcp::Options::ReuseAddr | //.flags(Pistache::Tcp::Options::ReuseAddr |
Pistache::Tcp::Options::ReusePort) //Pistache::Tcp::Options::ReusePort)
.maxRequestSize(102400) .maxRequestSize(102400)
.maxResponseSize(102400); .maxResponseSize(102400);
endpoint_.init(opts); endpoint_.init(opts);