Skip to content

Commit

Permalink
Os/Async/Network: fix typo in static_assert() (#11)
Browse files Browse the repository at this point in the history
Now network module would work if SONETWORKCONN == 128.

Co-authored-by: leha-bot <[email protected]>
  • Loading branch information
leha-bot and leha-bot authored Sep 3, 2024
1 parent 9b96fb9 commit 4f42715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Os/Async/Network/Config.hpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ struct Config: public flame_ide::NonCreational
# define SOMAXCONN1_STR(VALUE) #VALUE
# define SOMAXCONN_STR(VALUE) SOMAXCONN1_STR(VALUE)
static_assert(
TCP_SERVER_BACKLOG < flame_ide::os::SOCKET_TCP_MAX_CLIENTS
TCP_SERVER_BACKLOG <= flame_ide::os::SOCKET_TCP_MAX_CLIENTS
, "Generated server backlog more than SOMAXCONN = " SOMAXCONN_STR(SOMAXCONN)
);
# undef SOMAXCONN_STR
Expand Down

0 comments on commit 4f42715

Please sign in to comment.