[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #9716 [Tor]: Don't hardcode listen() backlog
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs