mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-06 22:29:23 +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:
+1
-1
@@ -284,7 +284,7 @@ do_panic(int signum) {
|
||||
void
|
||||
receive_tracker_dump(std::istream* s) {
|
||||
std::stringstream filename;
|
||||
filename << "./tracker_dump." << utils::Timer::current().sec();
|
||||
filename << "./tracker_dump." << utils::Timer::current().seconds();
|
||||
|
||||
std::fstream out(filename.str().c_str(), std::ios::out | std::ios::trunc);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user