tor/changes
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
..
.dummy Add a .dummy file in the changes directory to stop git from removing it 2015-05-11 11:41:48 -04:00
bug16697 Add get_max_sockets() and remove dead code 2015-07-30 15:21:12 -04:00
callgraph changes file for callgraph scripts 2015-07-30 12:35:52 -04:00
feature14175-chutney-performance Add chutney performance testing support to src/test/test-network.sh 2015-07-06 16:59:15 +10:00
geoip-july2015 Update geoip and geoip6 to the July 8 2015 database. 2015-07-29 15:49:04 +02:00
windows_only_files Wrap windows-only C files in #ifdef _WIN32 2015-07-30 11:14:15 -04:00