Re-add "Max Connections per Second" setting

This commit is contained in:
Andrew Resch 2008-10-18 23:55:27 +00:00
parent 16ba61dbf5
commit 1458db6b03
4 changed files with 7 additions and 6 deletions

View file

@ -7,9 +7,11 @@ Deluge 1.0.3 (18 October 2008)
would cause the torrent to be rechecked on every startup.
* Fix ip filtering
GtkUI:
* Re-add the "Max Connections Per Second" option with a default setting of 20
WebUI:
* Fix White template for Opera
* Remove max connections per second from config dialog.
Misc:
* Deluge will now use a system libtorrent library if available.

View file

@ -838,10 +838,7 @@ class Core(
self.session.set_max_half_open_connections(value)
def _on_set_max_connections_per_second(self, key, value):
#self.settings.connection_speed = value
# We are hard-coding this value to 20 due to issues with having it
# unlimited by default.
self.settings.connection_speed = 20
self.settings.connection_speed = value
self.session.set_settings(self.settings)
def _on_ignore_limits_on_local_network(self, key, value):

View file

@ -1306,6 +1306,7 @@ Disabled</property>
</child>
<child>
<widget class="GtkLabel" id="label58">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Maximum Connection Attempts per Second:</property>
</widget>
@ -1333,6 +1334,7 @@ Disabled</property>
</child>
<child>
<widget class="GtkSpinButton" id="spin_max_connections_per_second">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="xalign">1</property>
<property name="adjustment">-1 -1 9999 1 10 10</property>

View file

@ -105,7 +105,7 @@ class BandwithGlobal(config_forms.CfgForm):
max_upload_slots_global = forms.DelugeInt(_("Maximum Upload Slots"))
max_half_open_connections = forms.DelugeInt(_("Maximum Half-Open Connections"))
#max_connections_per_second = forms.DelugeInt(_("Maximum Connection Attempts per Second"))
max_connections_per_second = forms.DelugeInt(_("Maximum Connection Attempts per Second"))
ignore_limits_on_local_network = forms.CheckBox("Ignore limits on local network")