Source ports exhausted: EADDRNOTAVAIL, TIME_WAIT and NAT Gateway
· updated on
One hundred connections go through, the next one fails with EADDRNOTAVAIL. Why TIME_WAIT holds ports for 60 s, what keep-alive and tcp_tw_reuse change, and the same limit on the AWS NAT Gateway (figures from the AWS docs, nothing was created).