Set SO_REUSEADDR on all sockets, not just listeners

See bug 2850 for rationale: it appears that on some busy exits, the OS
decides that every single port is now unusable because they have been
all used too recently.
This commit is contained in:
Nick Mathewson
2011-05-03 22:22:20 -04:00
parent 4126de6888
commit aba7bb705a
2 changed files with 28 additions and 11 deletions
+5
View File
@@ -0,0 +1,5 @@
- Minor features
o Set SO_REUSEADDR on all sockets, not just listeners. This should
help busy exit nodes avoid running out of useable ports just because
all the ports have been used in the near past. Resolves issue 2850.