sledgehammer999
989cbda29c
Add missing unit sizes in misc.js
2017-05-31 00:34:01 +03:00
sledgehammer999
881f79b76d
[WebUI]Use translatable strings in Statistics dialog.
2017-05-31 00:34:00 +03:00
sledgehammer999
51986f3ac8
[WebUI]Make the context obligatory for translatable strings. Also delete duplicate strings from extra translations.
2017-05-31 00:33:59 +03:00
Eugene Shalygin
943a837570
Fix release CMake build
...
write() is declared with __attribute__ ((__warn_unused_result__)) and as
such we shall check its return value. Took opportunity and adjusted
error reporting a bit: if writing to stderr fails, try to write to
stdout.
2017-05-31 00:33:59 +03:00
Chocobo1
a6cf386073
.gitignore: ignore moc_*.h
2017-05-31 00:33:58 +03:00
Vladimir Golovnev
b6e1b6e501
Revert "Guard the flag used for deferred session configure." ( #6733 )
...
This reverts commit 5cbc7b16c0 .
2017-05-31 00:33:57 +03:00
Chocobo1
cee308a517
Fix stack overflow in Utils::Gzip::decompress
...
Anyway, use std::vector to allocate memory on the heap (in compress() too)
2017-05-31 00:33:56 +03:00
Brian Kendall
390d22bc66
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.
2017-05-31 00:33:56 +03:00
Chocobo1
e4a5b8d352
Setup DPI at startup
2017-05-31 00:33:55 +03:00
Chocobo1
2ba3104337
Remove workaround
...
Upstream confirmed bug fixed in Qt 5.2
2017-05-31 00:33:54 +03:00
Chocobo1
d1dfdd1306
Refactor
2017-05-31 00:33:53 +03:00
Chocobo1
8a02a69924
Temporary revert to the old behavior.
2017-05-31 00:33:53 +03:00
sledgehammer999
8ffc72b626
TravisCI: Install latest zlib and switch to container-based infrastructure.
2017-05-31 00:33:52 +03:00
Chocobo1
e85479dfd7
Specify lib requirement: zlib >= 1.2.5.2
2017-05-31 00:33:51 +03:00
Chocobo1
104bed7cc8
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
2017-05-31 00:33:50 +03:00
Chocobo1
75f3dd6d1d
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()
2017-05-31 00:33:50 +03:00
Chocobo1
751f64c98b
Rewrite rules for gzipping http response content
2017-05-31 00:33:49 +03:00
Chocobo1
6353c2ca3c
Implement robust acceptsGzipEncoding()
...
Adhere more to http/1.1 standard
2017-05-31 00:33:48 +03:00
Chocobo1
f51e467ce3
Fix "Content-Encoding" header is always created.
...
Was side effect of operator[]
2017-05-31 00:33:47 +03:00
Chocobo1
358d182c82
Cleanup Http::responseGenerator()
...
Add CRLF definition
Rewrite loop using iterator, slightly more efficient
Rename variables
2017-05-31 00:33:47 +03:00
Chocobo1
7d2802cf2c
Demote to helper function
...
Rename function
2017-05-31 00:33:46 +03:00
Chocobo1
a739d86e3d
Convert Qstring to char arrays
...
Cleanup header
Sort constants
2017-05-31 00:33:45 +03:00
Chocobo1
6ff614ebea
Send Date http header
...
It's not strict required but often expected.
change class to namespace
cleanup header
2017-05-31 00:33:44 +03:00
Chocobo1
d9f4141221
Always send Content-Length header.
...
Because without it, HTTP/1.1 (with persistence connection) clients will
keep waiting for more data.
2017-05-31 00:33:44 +03:00
Chocobo1
415a805818
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.
2017-05-31 00:33:43 +03:00
Chocobo1
b8fff68230
WebUI: Fix checkbox hidden. Closes #6642 .
2017-05-31 00:33:42 +03:00
Eugene Shalygin
44f81a2d2b
cmake: set warning and error options
...
The set is far from perfect, but guards against common errors with GCC.
2017-05-31 00:33:41 +03:00
Eugene Shalygin
b98ef9905e
cmake: use environment variable LIB on Windows
...
Append its value to CMAKE_LIBRARY_PATH to simplify life of on Windows.
2017-05-31 00:33:41 +03:00
Eugene Shalygin
e4f472e0f8
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.
2017-05-31 00:33:40 +03:00
Vladimir Golovnev (Glassez)
91a38193f5
Remove torrent temp folder when torrent is deleted
2017-05-31 00:33:39 +03:00
Vladimir Golovnev (Glassez)
66b92f3bb4
Remove torrent temp folder if it becomes unneeded
2017-05-31 00:33:38 +03:00
Eugene Shalygin
a911dc57f3
Fix formatting in CONTRIBUTING.md ( #6704 )
...
Fix formatting in CONTRIBUTING.md
2017-05-31 00:33:38 +03:00
Chocobo1
c43c473105
Disable Qt embedding manifest automatically
...
Embedding manifest fails for me after upgrading to VS2017, this fixes it.
2017-05-31 00:33:37 +03:00
wevsty
d079b71f63
update chinese windows installer translation
2017-05-31 00:33:36 +03:00
ngosang
8b0b398a5f
[Search engine] Add btdb plugin
2017-05-31 00:33:35 +03:00
ngosang
9400aac003
[Search engine] Update legittorrents plugin
2017-05-31 00:33:35 +03:00
ngosang
7856863b3e
[Search engine] Remove mininova plugin
2017-05-31 00:33:34 +03:00
ngosang
b1f598a1d3
[Search engine] Update demonoid plugin
2017-05-31 00:33:33 +03:00
Eugene Shalygin
9c7ed80292
cmake: use import libraries for Boost and OpenSSL in Libtorrent find module
2017-05-31 00:33:32 +03:00
Eugene Shalygin
1835ec6086
cmake: fix typo in the manifest file name
2017-05-31 00:33:32 +03:00
Chocobo1
3d4cead200
Uncrustify
2017-05-31 00:33:31 +03:00
Chocobo1
112a24f9b6
Relax comparsion for floating point
2017-05-31 00:33:30 +03:00
Chocobo1
cdcafecb44
Cleanup & refactor
2017-05-31 00:33:29 +03:00
Chocobo1
4e173d34d3
Setup parent pointer
...
Rely on Qt to do the delete, since the parent ownership is setup
correctly.
2017-05-31 00:33:28 +03:00
Chocobo1
df5d31b52b
Always draw background
2017-05-31 00:33:28 +03:00
Chocobo1
be745551e6
Fix downloaded/uploaded columns were not highlighted properly when selected.
...
Refactor
2017-05-31 00:33:27 +03:00
opengg
a3e4bcd1dd
[WebUI] Add skip_checking and paused to /command/download and /command/upload
2017-05-31 00:33:26 +03:00
opengg
36cc6909f8
[WebUI] bugfix: RequestParser::splitMultipartData drop extra trailing newline.
2017-05-31 00:33:25 +03:00
Chocobo1
3987e677d5
Refactor: move methods under the same #if section.
2017-05-31 00:33:24 +03:00
Chocobo1
13f27c6d3b
Refactor: move the validation of certificates & key functions under Server class
...
Rename method
Add log messages
2017-05-31 00:33:24 +03:00