Grokking Operating Systems and Networking for Backend Engineers
0% completed
Ephemeral Port Exhaustion
Checkout calls the payment provider for every order, and a new release opens a fresh connection for each call. At the busiest hour, some calls start to fail with an error that does not mention the network at all:
OSError: [Errno 99] Cannot assign requested address
The CPU is mostly idle, the payment provider is healthy, and the same code works on a quiet afternoon. Nothing is wrong with any address. The machine has simply run out of local port numbers for connections to that one destination.
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%