Skip to content

Commit

Permalink
Reduce concurrent connection count on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Sep 27, 2024
1 parent 378631f commit 2c5690a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/bun-usockets/src/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
#include <arpa/inet.h>
#endif

#ifdef __APPLE__
#define CONCURRENT_CONNECTIONS 2
#else
#define CONCURRENT_CONNECTIONS 4
#endif

// clang-format off
int default_is_low_prio_handler(struct us_socket_t *s) {
Expand Down

0 comments on commit 2c5690a

Please sign in to comment.