diff --git a/example/main.cpp b/example/main.cpp index a2f2a09..e655b13 100644 --- a/example/main.cpp +++ b/example/main.cpp @@ -63,7 +63,7 @@ int main(int argc, char **argv) { brewtils::env::init("../.env"); port = std::stoi(brewtils::env::get("PORT", "8000")); - Server app(1000); + Server app = Server(); // CORS middleware Cors cors; diff --git a/include/expresso/core/server.h b/include/expresso/core/server.h index d13ec98..3a6ed75 100644 --- a/include/expresso/core/server.h +++ b/include/expresso/core/server.h @@ -27,7 +27,7 @@ class Server : public Router { nexus::pool threadPool; public: - Server(size_t maxConnections = 5, + Server(size_t maxConnections = SOMAXCONN, size_t maxThreads = std::thread::hardware_concurrency()); ~Server();