tor/src
David Goulet 8c83e8cec0 Add get_max_sockets() and remove dead code
The control port was using set_max_file_descriptors() with a limit set to 0
to query the number of maximum socket Tor can use. With the recent changes
to that function, a check was introduced to make sure a user can not set a
value below the amount we reserved for non socket.

This commit adds get_max_sockets() that returns the value of max_sockets so
we can stop using that "setter" function to get the current value.

Finally, the dead code is removed that is the code that checked for limit
equal to 0. From now on, set_max_file_descriptors() should never be used
with a limit set to 0 for a valid use case.

Fixes #16697

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-07-30 15:21:12 -04:00
..
common Add get_max_sockets() and remove dead code 2015-07-30 15:21:12 -04:00
config Merge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6 2015-07-29 10:48:13 -04:00
ext Fix ed25519-donna with SSP on non-x86. 2015-07-27 00:49:11 +00:00
or Add get_max_sockets() and remove dead code 2015-07-30 15:21:12 -04:00
test Merge remote-tracking branch 'teor/feature14175-chutney-performance-v2' 2015-07-29 10:36:23 -04:00
tools Remove checks for visual C 6. 2015-06-29 12:55:03 -04:00
trunnel Re-run trunnel to capture change for msvc. 2015-07-23 12:05:06 -04:00
win32 Bump version to 0.2.7.2-alpha-dev 2015-07-27 13:59:49 -04:00
include.am Use trunnel for crypto_pwbox encoding/decoding. 2014-09-25 11:58:14 -04:00