[tor-bugs] #9716 [Tor]: Don't hardcode listen() backlog
Tor Bug Tracker & Wiki
blackhole at torproject.org
Tue Sep 10 22:33:39 UTC 2013
#9716: Don't hardcode listen() backlog
-------------------------+-------------------------------------------------
Reporter: philip | Owner:
Type: | Status: new
enhancement | Milestone: Tor: 0.2.5.x-final
Priority: normal | Version: Tor: 0.2.4.16-rc
Component: Tor | Keywords: tor-relay easy 024-backport limits,
Resolution: | socket, freebsd, linux
Actual Points: | Parent ID:
Points: |
-------------------------+-------------------------------------------------
Comment (by philip):
The closest thing to a "specification" is probably the UNIX Network
Programming book. I just looked it up (page 104 and further, third
edition). Much historical context, but no suggestion as to what to say
for "as many as possible". It does say that all relevant systems will
truncate to as large as they're prepared to accept if you specify
something larger than that.
I looked at the kernel side of listen() on FreeBSD, OS X and Linux, and
they will all Do The Right Thing[tm] with that. The fallback should catch
anything else.
Thanks!
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/9716#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list