Changes between Initial Version and Version 5 of Ticket #925


Ignore:
Timestamp:
Aug 24, 2010, 7:24:15 PM (9 years ago)
Author:
nickm
Comment:

So part one of the "fix" here, if we want to try it, is for connection_handle_listener_read() to compare get_n_open_sockets() with get_options->ConnLimit [grep through the rest of that file to see how we do it]. If we have too many sockets, then we should immediately close the new connection...

...and part two is, if we ever get an EMFILE/ENFILE, to reset our idea of what our connlimit is based on the number of files we currently have open...

...but first, we need to look through the code that connects to ORs/directories, and make sure that we don't actually treat a completed connect() attempt as meaning that a server is up. I am 97% sure that we don't.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #925

    • Property Milestone changed from to Tor: 0.2.2.x-final