[tor-commits] [tor/master] Add get_max_sockets() and remove dead code