From f20d0485c39006855c436abb62fa3bfdbd969146 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Mon, 15 Oct 2007 01:40:37 +0000 Subject: [PATCH] windows sucks. vista home has a limit of 5 half-open connections, so we set our windows limit to 4 to be save --- src/deluge_core.cpp | 6 +++--- 1 file 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);