mirror of https://github.com/c-ares/c-ares.git
ares_socket: set IP_BIND_ADDRESS_NO_PORT on ares_set_local_ip* tcp sockets (#887)
If you bind to a local address, you now only have approx 32k possible source ports to initiate connections. In modern days that can quickly run out. setting IP_BIND_ADDRESS_NO_PORT let's the kernel choose a port at connect time, increasing the limit of combinations to around a million. Authored-By: Cristian Rodríguez (@crrodriguez)pull/891/head
parent
9e64b10f5e
commit
3c4084c30c
1 changed files with 6 additions and 1 deletions
Loading…
Reference in new issue