summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcos Pinto <markybob@dipconsultants.com>2007-10-15 01:40:37 +0000
committerMarcos Pinto <markybob@dipconsultants.com>2007-10-15 01:40:37 +0000
commitf20d0485c39006855c436abb62fa3bfdbd969146 (patch)
treec925f371ae70717209fa92abab3a63ab47b45dd2
parent3fd9a0dc05d9dda507b9e6c14b1d2cf54358b1fa (diff)
downloaddeluge-f20d0485c39006855c436abb62fa3bfdbd969146.tar.gz
deluge-f20d0485c39006855c436abb62fa3bfdbd969146.tar.bz2
deluge-f20d0485c39006855c436abb62fa3bfdbd969146.zip
windows sucks. vista home has a limit of 5 half-open connections, so we set our windows limit to 4 to be save
-rw-r--r--src/deluge_core.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/deluge_core.cpp b/src/deluge_core.cpp
index c85838489..881d7a5a0 100644
--- a/src/deluge_core.cpp
+++ b/src/deluge_core.cpp
@@ -372,7 +372,7 @@ static PyObject *torrent_init(PyObject *self, PyObject *args)
M_settings->user_agent = std::string(user_agent);
#if defined(_WIN32)
- M_ses->set_max_half_open_connections(8);
+ M_ses->set_max_half_open_connections(4);
#endif
M_ses->set_download_rate_limit(-1);
@@ -475,9 +475,9 @@ static PyObject *torrent_set_max_half_open(PyObject *self, PyObject *args)
return NULL;
#if defined(_WIN32)
if (arg > 8)
- arg = 8;
+ arg = 4;
if (arg = -1)
- arg = 8;
+ arg = 4;
#endif
M_ses->set_max_half_open_connections(arg);