Sockets in a Bind: Troubleshooting Port Exhaustion in Heroku's Routing Layer (engineering.heroku.com) 48 points by edmorley 9y ago ↗ HN
[–] zimbatm 9y ago ↗ The linked article does a much better job of explaining the problem. Just read this one: https://idea.popcount.org/2014-04-03-bind-before-connect/
[–] skinowski 9y ago ↗ A better solution would be relatively new socket option:IP_BIND_ADDRESS_NO_PORThttps://www.mail-archive.com/netdev@vger.kernel.org/msg66879...
[–] Buge 9y ago ↗ That C code has a buffer overflow. Also they call atoi unnecessarily in each loop iteration.
[–] vor1968 9y ago ↗ This type of thing would not have been an issue 15 years ago. This is Richard Stevens socket programming 101.
4 comments
[ 3.3 ms ] story [ 19.6 ms ] threadIP_BIND_ADDRESS_NO_PORT
https://www.mail-archive.com/netdev@vger.kernel.org/msg66879...