Chocobo1
44e4a5b13a
Avoid performance penalty from type erasure
...
On average the affected code path is 0.1% faster and the result binary
is 10 KB smaller.
6 years ago
Chocobo1
a2a669572c
Use QSet for tracking server connections
...
We don't need to maintain order between connections so QSet would be more suitable.
6 years ago
Chocobo1
a35b6cc8dd
Remove closed connections immediately
...
Previously it relied on a timer to drop dead connections but that proved to
be too slow when there is an incoming burst of connections.
Fixes #10487 .
6 years ago
Chocobo1
41773a5465
Fix unsafe type narrowing
...
Appending the warning below:
qBittorrent\src\base/utils/version.h(176): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
qBittorrent\src\base/utils/version.h(185): note: see reference to function template instantiation 'std::array<T,2> Utils::Version<T,2,2>::parseList<StringsList>(const StringsList &)' being compiled
with
[
T=unsigned short,
StringsList=QList<QByteArray>
]
6 years ago
thalieht
2f3b7642c2
Show user friendly size in error
6 years ago
thalieht
25102b9c5d
Increase the download size limit to 100 MiB
6 years ago
Chocobo1
d86a984e25
Correctly handle '+' sign in x-www-form-urlencoded data
...
Fixes #10451 .
6 years ago
Vladimir Golovnev (Glassez)
ead078a38e
Add preliminary support of libtorrent v1.2
...
libtorrent v1.2 should be built with deprecated features enabled.
6 years ago
Chocobo1
04fd6e9d04
Avoid performance penalty when logger is full
6 years ago
thalieht
4c53447d35
Remove the max half-open connections option from GUI
...
Its functionality was deprecated long ago.
6 years ago
Vladimir Golovnev (Glassez)
4ee6a0ba29
Use Qt-provided HTTP redirection handling
6 years ago
Vladimir Golovnev (Glassez)
746916a963
Use DownloadHandler behind the scenes
6 years ago
Vladimir Golovnev (Glassez)
6cb15706f5
Reduce number of DownloadManager signals
6 years ago
Chocobo1
adbd34c795
Move helper functions to Utils::Gui namespace
6 years ago
sledgehammer999
5c63ad3b95
Raise minimum Qt version to 5.9.0
6 years ago
Chocobo1
6dab93f7fd
Replace deprecated QDesktopWidget class
6 years ago
Chocobo1
c657134344
Replace deprecated QSslSocket::setDefaultCiphers()
6 years ago
Chocobo1
168d3fbdac
Replace deprecated trUtf8()
6 years ago
thalieht
77aea3c59e
Add const to a few pointer arguments
6 years ago
thalieht
ce437817de
Make various minor changes
6 years ago
thalieht
89dce36e98
Use uniform initialization on some default arguments
6 years ago
thalieht
8a19a0d4a0
Remove const in declarations' arguments that are passed by value
6 years ago
thalieht
70f1537d9f
Add const to almost all remaining vars and arguments that qualify
6 years ago
Chocobo1
5e3fddf456
Replace QScopedPointer with std::unqiue_ptr
...
These 2 types are very similar and we should prefer the one from C++
standard library, this reduces the number of types in our code base.
Also see:
https://stackoverflow.com/questions/40346393/should-i-use-qscopedpointer-or-stdunique-ptr#comment67966940_40346991
6 years ago
Chocobo1
8fe1ff87f1
Limit DownloadHandler max redirection to 20
...
Closes #10219 .
6 years ago
thalieht
86df25a3e9
Remove some unused stuff
6 years ago
thalieht
8c944bd4e1
Avoid repeating the return type
6 years ago
thalieht
d8cbc9266a
Use 'auto' to avoid duplicating the type name
6 years ago
Chocobo1
409557ef30
Clean up code
6 years ago
thalieht
8a3f942385
Don't use 'else' after return/break
6 years ago
Chocobo1
313a95bdd1
Log DownloadManager SSL errors
6 years ago
thalieht
445adb0ab4
Convert pass-by-value arguments to const refs where applicable
6 years ago
thalieht
ca3ce87e06
Add const to many vars and arguments
...
Also remove const in declarations' arguments that are passed by value
6 years ago
Chocobo1
79d7ba8205
Fix wrong arg placeholder
6 years ago
Chocobo1
364a837dbd
Revise comments about C++14
6 years ago
Chocobo1
6d29a3af60
Make use of std algorithms
6 years ago
Chocobo1
f789df7edf
Add license header
6 years ago
Vladimir Golovnev (Glassez)
61925f74fd
Force recheck multiple torrents one by one
...
Closes #9120 .
6 years ago
Chocobo1
814eef1e56
Fix wrong arg placehoder
6 years ago
Chocobo1
5cdb3b6a2d
Load WebUI certificate & key from file path
...
This allow users to update certificate & key more easily, i.e. without the need to import them
into qbt.
Closes #6675 , #7547 , #8315 , #8564 .
6 years ago
Chocobo1
48d358872f
Cleanup header inclusion
6 years ago
Vladimir Golovnev (Glassez)
b0446380c6
Separate URL components before percent-decoding
...
Allow special characters in query string parameters.
Closes #9116 .
6 years ago
sledgehammer999
4a414d50f1
Remove leftover tracker authentication code
6 years ago
Chocobo1
04227f5a41
Add QBT_APP_64BIT define
...
Now we use QT_POINTER_SIZE to detect CPU bitness, it has the advantage of applicable to all CPU
architectures not limiting to x86 arch.
6 years ago
Vladimir Golovnev (Glassez)
302c99d7d5
Drop support of libtorrent < 1.1.10
6 years ago
Chocobo1
b7627db98c
Remove unused headers
6 years ago
Chocobo1
06e82d10f6
Replace boost::function with std::function
6 years ago
Chocobo1
d013e0922d
Use the proper Qt type
6 years ago
Chocobo1
2b903fc3d1
Move Utils::Misc::isUrl() function
...
All usage of this function gets to call Net::DownloadManager eventually.
6 years ago
Chocobo1
6759446639
Cleanup code
...
Also remove redundant code, it is already handled correctly in subsequent function calls.
6 years ago