an0n666
09bf033226
Use configured net interface even when it is missing
2020-04-22 18:19:33 +03:00
an0n666
d0be71c225
Change default upload slot choking limits
2020-04-22 18:19:19 +03:00
sledgehammer999
eda3747c08
Use static_cast for explicit type conversions
2020-04-22 18:19:17 +03:00
Vladimir Golovnev (Glassez)
698ee94d0b
Split TorrentHandle interface and implementation
2020-04-22 18:19:14 +03:00
an0n666
eea693979a
Change default stop_tracker_timeout settings
2020-04-22 18:19:12 +03:00
Raif Atef
654bf85a71
Do not use 0.0.0.0 or [::] for outgoing interfaces
...
Fixes #12443
2020-04-22 18:19:11 +03:00
an0n666
8706a7c973
Remove deprecated strict super seeding mode from advanced settings
2020-04-22 18:19:10 +03:00
Chocobo1
e5bf83a594
Preallocate output buffer
2020-04-22 18:19:06 +03:00
Chocobo1
2a3e64933b
Fix header inclusion order
2020-04-22 18:19:05 +03:00
Chocobo1
37354a9e29
Avoid holding encoded resume data in memory
...
Now it the encoded resume data will be streamed to file instead of a
temporary buffer holding the whole of it.
2020-04-22 18:19:02 +03:00
Raif Atef
075245c915
Fix outgoing interface is not getting assigned
...
Assignment was missing in main branch of condition statement.
Closes https://github.com/qbittorrent/qBittorrent/issues/12421
2020-04-22 18:18:59 +03:00
NotTsunami
8ebb11f981
Set disk cache size for older libtorrent versions
...
Libtorrent versions older than 1.2.6 have a bug when setting disk
cache size to auto.
See 6c880159c9 .
2020-04-22 18:18:54 +03:00
Vladimir Golovnev (Glassez)
67c6107892
Fix unexpected torrent resume after app restart
...
Closes #12322 .
2020-04-02 00:17:45 +03:00
sledgehammer999
2794e883b6
Fix broken UNC paths in fastresumes on Windows
...
See #12245 and #12282
2020-04-01 17:18:38 +03:00
Tester798
e86249a4e8
Fix regression when fastresume contains network path
...
Closes #12245 after regression was introduced in #11785 .
2020-04-01 17:18:37 +03:00
NotTsunami
6f45764629
Add UPnP lease duration advanced option
...
This is a new setting added that is pending addition to
libtorrent 1.2.6. This setting is important because some routers do
not support expiration times on port-maps and do not return an error
either, silently failing. The previous default of permanent leases is
retained.
2020-04-01 17:18:36 +03:00
Chocobo1
43d9d16241
Add logging for SOCKS5 proxy errors
2020-04-01 17:18:33 +03:00
Chocobo1
ea3c360901
Construct QString more efficiently
2020-04-01 17:18:16 +03:00
Chocobo1
39fe0025cd
Allow to translate error messages
2020-04-01 17:18:02 +03:00
thalieht
716aad9483
Append new move storage job to queue
...
fixup e4ff206e3c
2020-03-24 16:15:09 +02:00
Vladimir Golovnev (Glassez)
f6b0abbd75
Move torrent storages one by one
2020-03-24 16:15:06 +02:00
an0n666
923395b5c7
Check if file exists in seed mode
2020-03-24 16:14:56 +02:00
Vladimir Golovnev (Glassez)
703330c40d
Allow to save downloaded metadata as torrent file
2020-03-24 16:14:51 +02:00
FranciscoPombal
5a09f996ed
Revert using random port by default
...
Revert change introduced in https://github.com/qbittorrent/qBittorrent/pull/11637 and also revert the associated follow-up https://github.com/qbittorrent/qBittorrent/pull/12000 .
Reason: https://github.com/arvidn/libtorrent/pull/4335
2020-03-24 16:14:47 +02:00
Chocobo1
66c2e70016
Include resume folder path in exception message
...
The message in RuntimeError exception will be displayed to the users and
users would be clueless if we don't show the path.
2020-03-24 16:14:39 +02:00
Tester798
bbaa3a94c5
Fix portable mode
...
Try to fix portable mode bug. Closes #11706 , #11178 , #7765 .
2020-03-24 16:14:33 +02:00
Chocobo1
534549142e
Unify singleton pattern in Profile class
...
1. Use unified function names `initInstance()` and `freeInstance()` and
make them public.
2. Add `freeInstance()` to avoid noise from memory leak detectors.
3. Let `instance()`return a pointer directly to avoid unnecessary
indirections when invoking functions.
2020-03-24 16:14:32 +02:00
NotTsunami
0cd4900e92
Remove redundant null checks
...
Attempting to delete a null pointer is a noop in C++.
Closes #2864 .
[1] https://isocpp.org/wiki/faq/freestore-mgmt#delete-handles-null
2020-03-24 16:14:28 +02:00
Vladimir Golovnev (Glassez)
b160b56306
Redesign torrent startup handling
2020-03-24 16:14:20 +02:00
Chocobo1
db258f7461
Migrate away from deprecated settings
...
Libtorrent has deprecated `upnp_ignore_nonrouters` in
https://github.com/arvidn/libtorrent/pull/4251
2020-03-24 16:14:16 +02:00
FranciscoPombal
07196571e8
Add piece_extent_affinity to AdvancedSettings
...
Expose option in WebUI settings and WebAPI.
Requires WebAPI version bump.
Closes #11436 .
2020-03-24 16:14:14 +02:00
An0n
c4eb6eccaf
Change placement of stop tracker timeout
2020-03-24 16:14:10 +02:00
an0n666
1c091cef76
Expose stop_tracker_timeout in advanced settings
2020-03-24 16:14:09 +02:00
Chocobo1
4205e99479
Migrate away from deprecated API in Qt 5.14
2020-03-24 16:14:01 +02:00
FranciscoPombal
0c83b3e3a3
Change some settings defaults for better behaviour out of the box
...
- CheckingMemUsageSize (16 MiB -> 32 MiB): a 16 MiB increase in memory consumption seems worthwhile for a nice performance boost in most cases.
- DiskCacheSize (64 MiB -> Auto): auto yields the best performance without committing to a huge fixed value.
- UseRandomPort (false -> true): The initial port chosen by qBittorrent may clash with something else the user already has that is aways using that port (low probability, but still). Thus, qBittorrent will always fail listening on that port, causing unexpected problems for the user. Users who know they want a fixed port will go to the settings anyway.
2020-03-24 16:13:56 +02:00
an0n666
ad7279953e
Disable Torrent Queue by default
...
It should remain disabled by default. Anyone that needs to Queue torrents for seeding/downloading should go to settings and change it to their preference.
2020-03-24 16:13:48 +02:00
sledgehammer999
3129712f03
Use the incomplete folder where appropriate
...
Restored torrents already have the correct path saved in their fastresume. Don't override it.
Magnets and new torrents have to be set explicitly to the incomplete folder if it is enabled.
Closes #11552
2019-12-18 00:18:52 +02:00
sledgehammer999
2bda2a37e3
Rework the listening IP/interface selection code
...
Closes #11561
2019-12-18 00:18:48 +02:00
Chocobo1
027b605fc0
Enable "Apply rate limit to peers on LAN" option by default
...
Because some ISP will deploy Carrier Grade NAT (means assigning private
IP address to user) and thus accidentally circumvent the speed limiter.
https://www.a10networks.com/blog/carrier-grade-nat/
2019-12-18 00:18:47 +02:00
Chocobo1
caa8e1658a
Fix stuck in wrong torrent state
...
Before this patch, adding the torrent in
https://github.com/qbittorrent/qBittorrent/issues/11511 and the torrrent
state will stay in torrent_status::checking_resume_data forever.
This is not the correct state since the `torrent_status.errc` field is
non-zero and this commit fixes it.
2019-12-18 00:18:33 +02:00
Chocobo1
bf58555a7a
Migrate away from deprecated API
2019-11-29 02:57:31 +08:00
sledgehammer999
56c0f39593
Merge pull request #11520 from sledgehammer999/revert_fastresume_functionality
...
Revert fastresume functionality
2019-11-27 22:38:21 +02:00
sledgehammer999
7aa01a1b51
Revert "Always save info dict when saving fastresume"
...
This reverts commit 4aab44e779 .
2019-11-25 15:35:06 +02:00
sledgehammer999
005f0010ec
Revert "Fix unable to remove web seeds"
...
This reverts commit d657c87243 .
2019-11-25 15:34:37 +02:00
Vladimir Golovnev (Glassez)
a4b9a4d9da
Fix compilation for Windows 7 with MinGW
2019-11-22 13:03:52 +03:00
Chocobo1
af52a18f82
Avoid session reconfiguration when limit has not changed
...
Fix up 5d46c9b2d6 .
2019-11-20 12:22:18 +08:00
Chocobo1
5d46c9b2d6
Revise "speed limits" related code
...
The old code has a wrong comparison which compares speed limits
in different magnitude: bytes vs KiB. The comparison is removed.
Also the old code treats values that are smaller than 1024 as unlimited
speed which is clearly wrong.
2019-11-17 02:27:59 +08:00
Chocobo1
b408a09755
Remove unused type alias
2019-11-04 13:47:30 +08:00
Chocobo1
1b47350952
Remove anonymous function forward declarations
...
Also reorder the functions slightly to make it compile.
2019-11-04 12:21:16 +08:00
Mike Tzou
6da39d9279
Merge pull request #11422 from Chocobo1/buffer
...
Reserve memory for file data buffers
2019-11-02 13:16:21 +08:00