Changed max half-open connections default limit to 8 on XP/2000 and 4 on
Vista
This commit is contained in:
parent
ee7edca06f
commit
85ea737b0d
@ -123,6 +123,13 @@ def windows_check():
|
|||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
def vista_check():
|
||||||
|
import platform
|
||||||
|
if platform.release() == "Vista":
|
||||||
|
return True
|
||||||
|
else:
|
||||||
|
return False
|
||||||
|
|
||||||
def get_pixmap(fname):
|
def get_pixmap(fname):
|
||||||
"""Returns a pixmap file included with deluge"""
|
"""Returns a pixmap file included with deluge"""
|
||||||
return pkg_resources.resource_filename("deluge", os.path.join("data", \
|
return pkg_resources.resource_filename("deluge", os.path.join("data", \
|
||||||
|
|||||||
@ -69,7 +69,8 @@ DEFAULT_PREFS = {
|
|||||||
"max_upload_speed": -1.0,
|
"max_upload_speed": -1.0,
|
||||||
"max_download_speed": -1.0,
|
"max_download_speed": -1.0,
|
||||||
"max_upload_slots_global": 4,
|
"max_upload_slots_global": 4,
|
||||||
"max_half_open_connections": -1,
|
"max_half_open_connections": (lambda: deluge.common.windows_check() and
|
||||||
|
(lambda: deluge.common.vista_check() and 4 or 8)() or -1)(),
|
||||||
"max_connections_per_second": 20,
|
"max_connections_per_second": 20,
|
||||||
"ignore_limits_on_local_network": True,
|
"ignore_limits_on_local_network": True,
|
||||||
"max_connections_per_torrent": -1,
|
"max_connections_per_torrent": -1,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user