Chocobo1
893ce32f1d
Remove curly braces
8 years ago
Chocobo1
a1cad86bbf
Remove workaround
...
Upstream confirmed bug fixed in Qt 5.2
8 years ago
Chocobo1
b3c73b7868
Refactor
8 years ago
Frédéric Brière
e8f6149a6d
findIncompleteFiles(): Replace dir listing with individual checks. Closes #6265 .
...
Looking for incomplete files in a new torrent by using a pre-generated
directory listing presents several disadvantages:
- It requires us to extract the top-level directory name (in case it
was renamed).
- It requires us to know whether the top-level directory was stripped.
- In the latter case, it may result in recursively traversing the
entire contents of all downloaded torrents.
Calling QFile::exists() individually for each file solves all these
issues.
In so doing, the handling of single-file and multiple-file torrents are
rendered pretty much identical, and can therefore be merged.
8 years ago
Chocobo1
5e50d8ed91
WebUI: Fix checkbox hidden. Closes #6642 .
8 years ago
Eugene Shalygin
c4e16aa820
cmake: set warning and error options
...
The set is far from perfect, but guards against common errors with GCC.
8 years ago
Vladimir Golovnev
93df0ef1d1
Move AddTorrentParams to its own header ( #6712 )
...
* Move AddTorrentParams to its own header
* fixup! Move AddTorrentParams to its own header
8 years ago
Vladimir Golovnev (Glassez)
160b7ff2d3
Remove torrent temp folder when torrent is deleted
8 years ago
Vladimir Golovnev (Glassez)
c56b4a25bc
Remove torrent temp folder if it becomes unneeded
8 years ago
Eugene Shalygin
71cf25ae99
Replace variable length array with std::vector in print_stacktrace()
...
The function does memory allocation from heap anyway, so should not be
a problem to use STL container.
8 years ago
Vladimir Golovnev (Glassez)
a78a1a9c64
Add invariant checking in ArticleListWidget
8 years ago
Vladimir Golovnev (Glassez)
335443e6a0
Drop QThread::msleep wrapper
8 years ago
Vladimir Golovnev (Glassez)
d5d946dd66
Drop Qt4 related settings from QMake project
8 years ago
sledgehammer999
b71ee80ecd
Optimize P2P filter parsing too.
8 years ago
sledgehammer999
fd7e69e1e0
Add helper function for logging messages.
8 years ago
sledgehammer999
51cf6bd2a5
Optimize DAT filter parsing. Parse in memory and in place instead of copying strings around.
8 years ago
Brian Kendall
59e6a4298d
Fixed macOS-specific bug in AddNewTorrentDialog
...
Because AddNewTorrentDialog is a sheet in macOS, repositioning it causes bad things to happen, particularly if the main dialog is on a secondary monitor.
8 years ago
Vladimir Golovnev (Glassez)
6764de8ef0
Fix ArticleListWidget adds new articles in wrong order
8 years ago
Vladimir Golovnev (Glassez)
71814885aa
Fix ArticleListWidget doesn't clear properly
8 years ago
Vladimir Golovnev (Glassez)
abfcfb5af0
Fix possible null pointer dereference
8 years ago
sledgehammer999
8f6e04d779
Using new IP parser provided by @evsh . It is faster and uses less memory.
...
Class `DATIPv4Parser` was written by Eugene Shalygin <eugene.shalygin@gmail.com> (evsh on github).
8 years ago
sledgehammer999
f53dab8ad4
Output log messages for ip filter parsing errors.
8 years ago
sledgehammer999
05ab9fc355
Optimize ip filter parsing.
8 years ago
Vladimir Golovnev (Glassez)
3a3125ea2b
Fix remove oldest article
8 years ago
Vladimir Golovnev (Glassez)
c799923d7d
Allow strip root folder using default settings
8 years ago
Vladimir Golovnev (Glassez)
711be50e9c
Fix AddTorrentData field types
8 years ago
sledgehammer999
032eb12585
Remove whitespace.
8 years ago
sledgehammer999
3cdc6fb978
Fix compiler warnings.
8 years ago
Vladimir Golovnev (qlassez)
f259bde275
Fix "Create subfolder" in AddNewTorrentDialog
8 years ago
zywo
51104a9fb4
Fix CMake build
8 years ago
Vladimir Golovnev (Glassez)
989a70fe60
Redesign RSS subsystem
8 years ago
ngosang
fa64f33c2a
[Search engine] Add btdb plugin
8 years ago
Eugene Shalygin
14e168039c
Use explicit class for search plugin versions
8 years ago
ngosang
5d0cfc7475
[Search engine] Update legittorrents plugin
8 years ago
ngosang
339b35c369
[Search engine] Remove mininova plugin
8 years ago
ngosang
91e7e94820
[Search engine] Update demonoid plugin
8 years ago
Chocobo1
0b5de9ff54
Temporary revert to the old behavior.
8 years ago
Chocobo1
a35c6426ab
Specify lib requirement: zlib >= 1.2.5.2
8 years ago
Chocobo1
617f19e599
Revise Utils::Gzip::decompress
...
Rename from uncompress to decompress
Change signature
Use proper casting
Use larger buffer for the output of inflate()
Reserve 1 MBytes for output buffer
Change function signature
8 years ago
Chocobo1
302c8ba850
Revise Utils::Gzip::compress code
...
Change signature
Add ZLIB_CONST define to make z_stream.next_in const
Cast to zlib defined type Bytef*
Set memLevel to 9 in deflateInit2() for maximum performance
Revise compression loop
On returning false, free memory correctly by calling deflateEnd()
Reserve space by the estimation of deflateBound()
8 years ago
Chocobo1
94b496354b
Rewrite rules for gzipping http response content
8 years ago
Chocobo1
4600e679d1
Implement robust acceptsGzipEncoding()
...
Adhere more to http/1.1 standard
8 years ago
Chocobo1
129172453b
Fix "Content-Encoding" header is always created.
...
Was side effect of operator[]
8 years ago
Chocobo1
7d36c81949
Cleanup Http::responseGenerator()
...
Add CRLF definition
Rewrite loop using iterator, slightly more efficient
Rename variables
8 years ago
Chocobo1
6cb2f05a6c
Demote to helper function
...
Rename function
8 years ago
Chocobo1
829e1399ca
Convert Qstring to char arrays
...
Cleanup header
Sort constants
8 years ago
Chocobo1
4b2266a8e2
Send Date http header
...
It's not strict required but often expected.
change class to namespace
cleanup header
8 years ago
Chocobo1
9496b2a159
Always send Content-Length header.
...
Because without it, HTTP/1.1 (with persistence connection) clients will
keep waiting for more data.
8 years ago
Chocobo1
0b28fb6c6b
Implement http persistence connection
...
Max simultaneous connection limit set to 500
This also release allocated memory of Connection instances at runtime instead of at program shutdown.
8 years ago
Eugene Shalygin
f99ba03177
cmake: fix typo in the manifest file name
8 years ago