💻 Software
Does Mac OS X throttle the RATE of socket creation?
Fresh5 days ago
Mar 15, 20264825 viewsConfidence Score0%
0%
Problem
This may seem programming related, but this is an OS question. I'm writing a small high performance daemon that takes thousands of connections per second. It's working fine on Linux (specifically Ubuntu 9.10 on EC2). On Mac OS X if I throw a few thousand connections at it (roughly about 16350) in a…
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Does Mac OS X throttle the RATE of socket creation?
Low Risk
Mac OS X starts opening ephemeral ports at 49152. Port numbers are 16-bit unsigned integers, so there are 65535 possible ports. 65535 - 49152 = 16383. I think you've got 16K ports in TIME_WAIT. Update: You might want to look at the following sysctl(…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix