mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
Add connection_speed
to advanced settings
Now we follow libtorrent current default value 30. Closes #6973. Also bump WebAPI version.
This commit is contained in:
parent
ea3b897d5d
commit
ef79546508
8 changed files with 47 additions and 6 deletions
|
@ -115,6 +115,7 @@ namespace
|
|||
SEND_BUF_LOW_WATERMARK,
|
||||
SEND_BUF_WATERMARK_FACTOR,
|
||||
// networking & ports
|
||||
CONNECTION_SPEED,
|
||||
SOCKET_BACKLOG_SIZE,
|
||||
OUTGOING_PORT_MIN,
|
||||
OUTGOING_PORT_MAX,
|
||||
|
@ -223,6 +224,8 @@ void AdvancedSettings::saveAdvancedSettings()
|
|||
session->setSendBufferWatermark(m_spinBoxSendBufferWatermark.value());
|
||||
session->setSendBufferLowWatermark(m_spinBoxSendBufferLowWatermark.value());
|
||||
session->setSendBufferWatermarkFactor(m_spinBoxSendBufferWatermarkFactor.value());
|
||||
// Outgoing connections per second
|
||||
session->setConnectionSpeed(m_spinBoxConnectionSpeed.value());
|
||||
// Socket listen backlog size
|
||||
session->setSocketBacklogSize(m_spinBoxSocketBacklogSize.value());
|
||||
// Save resume data interval
|
||||
|
@ -525,6 +528,12 @@ void AdvancedSettings::loadAdvancedSettings()
|
|||
m_spinBoxSendBufferWatermarkFactor.setValue(session->sendBufferWatermarkFactor());
|
||||
addRow(SEND_BUF_WATERMARK_FACTOR, (tr("Send buffer watermark factor") + ' ' + makeLink("https://www.libtorrent.org/reference-Settings.html#send_buffer_watermark_factor", "(?)"))
|
||||
, &m_spinBoxSendBufferWatermarkFactor);
|
||||
// Outgoing connections per second
|
||||
m_spinBoxConnectionSpeed.setMinimum(0);
|
||||
m_spinBoxConnectionSpeed.setMaximum(std::numeric_limits<int>::max());
|
||||
m_spinBoxConnectionSpeed.setValue(session->connectionSpeed());
|
||||
addRow(CONNECTION_SPEED, (tr("Outgoing connections per second") + ' ' + makeLink("https://www.libtorrent.org/reference-Settings.html#connection_speed", "(?)"))
|
||||
, &m_spinBoxConnectionSpeed);
|
||||
// Socket listen backlog size
|
||||
m_spinBoxSocketBacklogSize.setMinimum(1);
|
||||
m_spinBoxSocketBacklogSize.setMaximum(std::numeric_limits<int>::max());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue