mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-15 14:42:30 +00:00
* Automagically set the max open sockets and files to resonable values
according to sysconf(_SC_OPEN_MAX). * Added timeout to torrent::TrackerHttp so connections that are left open, but with no data being transmitted get closed after a resonable time. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@524 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -95,11 +95,6 @@ Manager::initialize_second() {
|
||||
CurlStack::global_init();
|
||||
listen_open();
|
||||
|
||||
if (torrent::get_max_open_files() + torrent::get_max_open_sockets() + 32 > m_pollManager->max_open_sockets()) {
|
||||
m_logImportant.push_front("Warning: Max open sockets and files exceeds poll manager's max open sockets");
|
||||
m_logComplete.push_front("Warning: Max open sockets and files exceeds poll manager's max open sockets");
|
||||
}
|
||||
|
||||
// Register slots to be called when a download is inserted/erased,
|
||||
// opened or closed.
|
||||
m_downloadList.slot_map_insert()["0_initialize_bencode"] = sigc::mem_fun(*this, &Manager::initialize_bencode);
|
||||
|
||||
Reference in New Issue
Block a user