From 8b7419eb51034f38fb7a43e16eddd35e4c582a00 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Mon, 10 Sep 2007 08:48:18 +0000 Subject: [PATCH] set half open connections to 8 on windows --- src/deluge_core.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/deluge_core.cpp b/src/deluge_core.cpp index 8d002720b..acb1414b0 100644 --- a/src/deluge_core.cpp +++ b/src/deluge_core.cpp @@ -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);