[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #9390 [Core Tor/Tor]: Warn if you're being a public relay but have too-low file descriptor limit
#9390: Warn if you're being a public relay but have too-low file descriptor limit
-------------------------------------------------+-------------------------
Reporter: arma | Owner: (none)
Type: enhancement | Status: new
Priority: Medium | Milestone: Tor:
| unspecified
Component: Core Tor/Tor | Version:
Severity: Normal | Resolution:
Keywords: tor-relay easy dos resources | Actual Points:
logging |
Parent ID: | Points:
Reviewer: | Sponsor:
-------------------------------------------------+-------------------------
Comment (by teor):
Replying to [comment:6 aruna1234]:
> As far as I have understood the bug,a new function has to be created
which would check whether the relay is a public relay
Use `public_server_mode(get_options())` to check if tor is a relay.
> and if it is then check whether the limit is under 8192. If yes then
warn the user about the same. Let me know if I understood something wrong.
> The only thing that I am not sure of is where will the new function be
added?
You could add code at the end of `set_max_file_descriptors()` that checks
`limit`.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/9390#comment:7>
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