Skip to content

Commit

Permalink
use max listener capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
Jadit19 committed Aug 27, 2024
1 parent e9c75b7 commit 89fadc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion include/expresso/core/server.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 89fadc4

Please sign in to comment.