mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-15 14:05:57 +00:00
set half open connections to 8 on windows
This commit is contained in:
parent
02720ddcd9
commit
8b7419eb51
@ -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…
x
Reference in New Issue
Block a user