mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-19 15:59:57 +00:00
windows sucks. vista home has a limit of 5 half-open connections, so we set our windows limit to 4 to be save
This commit is contained in:
parent
3fd9a0dc05
commit
f20d0485c3
@ -372,7 +372,7 @@ static PyObject *torrent_init(PyObject *self, PyObject *args)
|
|||||||
|
|
||||||
M_settings->user_agent = std::string(user_agent);
|
M_settings->user_agent = std::string(user_agent);
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
M_ses->set_max_half_open_connections(8);
|
M_ses->set_max_half_open_connections(4);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
M_ses->set_download_rate_limit(-1);
|
M_ses->set_download_rate_limit(-1);
|
||||||
@ -475,9 +475,9 @@ static PyObject *torrent_set_max_half_open(PyObject *self, PyObject *args)
|
|||||||
return NULL;
|
return NULL;
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
if (arg > 8)
|
if (arg > 8)
|
||||||
arg = 8;
|
arg = 4;
|
||||||
if (arg = -1)
|
if (arg = -1)
|
||||||
arg = 8;
|
arg = 4;
|
||||||
#endif
|
#endif
|
||||||
M_ses->set_max_half_open_connections(arg);
|
M_ses->set_max_half_open_connections(arg);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user