mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
set half open connections to 8 on windows
This commit is contained in:
parent
02720ddcd9
commit
8b7419eb51
1 changed files with 5 additions and 1 deletions
|
@ -366,8 +366,12 @@ static PyObject *torrent_init(PyObject *self, PyObject *args)
|
|||
// Init values
|
||||
|
||||
M_settings->user_agent = std::string(user_agent);
|
||||
|
||||
#if defined(_WIN32)
|
||||
M_ses->set_max_half_open_connections(8);
|
||||
#else
|
||||
M_ses->set_max_half_open_connections(-1);
|
||||
#endif
|
||||
|
||||
M_ses->set_download_rate_limit(-1);
|
||||
M_ses->set_upload_rate_limit(-1);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue