1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-21 15:22:37 +00:00
Commit graph

16210 commits

Author SHA1 Message Date
H5117
59c1c1e83b
qt: refactor Application (#7092) 2024-12-18 21:47:37 +00:00
Rukario
f2aeb11b07
feat: multiple popups in a hierarchy-like system (#7297) 2024-12-15 17:12:58 -06:00
Yat Ho
5a05b37838
feat: support the JSON null type in tr_variant (#7255) 2024-12-15 16:50:19 -06:00
reardonia
5c714a5599
refactor: add handshake fire_timer() instead of overloading fire_done() (#6966) 2024-12-14 15:14:44 -06:00
Yat Ho
b3912fa1a5
feat: download first and last piece first in sequential mode (#6893)
* feat: download first and last piece first in sequential mode

* test: fix tests
2024-12-13 19:32:03 -06:00
Yat Ho
b4bbc8744e
refactor: use evhttp public accessors in rpc server (#7112)
* refactor: use libevent public accessors in `handle_request()`

* chore: housekeeping in `handle_request()`

* refactor: use libevent public accessors in `make_response()`

* refactor: use libevent public accessors in `serve_file()`

* refactor: use libevent public accessors in `handle_web_client()`

* refactor: use libevent public accessors in `handle_rpc_from_json()`

* refactor: use libevent public accessors in `handle_rpc()`

* refactor: use libevent public accessors in `isHostnameAllowed()`

* refactor: use libevent public accessors in `test_session_id()`
2024-12-13 14:15:30 -06:00
Michal Šrůtek
1e9a2986ee
Fix macstadium opensource URL (#7289) 2024-12-13 10:10:55 +00:00
Charles Kerr
c3a8106077
docs: add 4.1.0-beta.1 notes (#7288)
* docs: add 4.1.0-beta.1 notes

* chore: bump version to 4.1.0-beta.1

* fixup! docs: add 4.1.0-beta.1 notes
2024-12-12 18:16:24 -06:00
Cœur
7ec57cfe88
Adjust slider limits in GTK (#7251) 2024-12-12 23:05:10 +00:00
cloppingemu
bb6c6dd4ed
Feature/default focus (#7102)
* Setting default focus in Open URL and Add Tracker dialog box

* Additional cleanup to remove duplication of responsibility in setting focus

* Removing now un-necessary code in TorrentUrlChooserDialog.ui

* Using activates-default property to enable default action in torrent url chooser and tracker adder

* removing un-necessary focus

* Adding missing property to the accept buttons.

* Removing unintended whitespace change in
TorrentUrlChooserDialog

* Use `True` instead of `1` for booleans (GTK3)
2024-12-12 23:03:28 +00:00
Yat Ho
31a63f0045
feat: log when RPC server reject requests (#7114) 2024-12-12 16:12:02 -06:00
Charles Kerr
d1dfed4588
chore: update generated web files 2024-12-12 16:11:24 -06:00
Yat Ho
dd58e42105
fix: send ltep handshake if received ltep handshake (#7204)
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-12-12 15:19:03 -06:00
Rukario
57e4849cde
refactor: softcode/consolidate strings in torrent-row.js, normal appendChild order for compact mode (#7285) 2024-12-12 15:17:30 -06:00
Yat Ho
b2ce9eea83
fix: obtain session lock before getting tor ptr (#7286) 2024-12-12 15:17:07 -06:00
Yat Ho
8bca3f2e06
refactor: parse cookie pref values as their default values types (#7001)
* refactor: allow floating point values in web refresh rate

Co-authored-by: Rukario <kakashiru@yahoo.com>

* refactor: parse cookie pref according to default value type

* fixup! refactor: parse cookie pref according to default value type

---------

Co-authored-by: Rukario <kakashiru@yahoo.com>
2024-12-10 08:58:28 -06:00
Yat Ho
90859fe115
test: use new tr_variant API (#7268)
* test: new `tr_variant` API in `json-test.cc`

* test: new `tr_variant` API in `variant-test.cc`

* chore: housekeeping

* test: new `tr_variant` API in `dht-test.cc`

* fix: use `reinterpret_cast` in `tr_variant::make_raw()`

* fix: add missing `typename` in `tr_variant::make_raw()`

* test: new `tr_variant` API in `settings-test.cc`

* test: new `tr_variant` API in `move-test.cc`

* test: new `tr_variant` API in `rpc-test.cc`

* test: new `tr_variant` API in `makemeta-test.cc`

* test: new `tr_variant` API in `session-test.cc`
2024-12-09 19:22:54 -06:00
Yat Ho
510286f419
ci: remove macos pkgconf workaround (#7273)
Xref: 1074c30e60
2024-12-09 16:32:14 -06:00
Yat Ho
60e5d98dc1
fix: handle nullptr in json serde (#7258)
* fix: handle nullptr in json serde

* test: fuzz json serde
2024-12-09 11:59:10 -06:00
Yat Ho
affb03a8d2
refactor: remove tr_torrent::do_magnet_idle_work() (#7271)
* Revert "fix: possible heap-use-after-free with magnet links (#6815)"

This reverts commit 09b67c84b1.

* fix: check if torrent still exists before verifying

* refactor: queue `on_have_all_metainfo()` in session thread instead
2024-12-09 10:58:39 -06:00
Cœur
43f5ca8e0c
CI: updrading deprecated macOS 12 to macOS 13 (#7275) 2024-12-08 22:57:18 -06:00
Rukario
100e88826c
fix: utilize gigabyte per second to conserve space and upload arrow clipping fix (#7279)
* Update transmission-app.scss

* Update formatter.js

* Update formatter.js
2024-12-08 21:44:18 -06:00
Josh Grosse
1bcc951001
chore: add 4.0.5 and 4.0.6 release notes to main branch (#7282)
* docs: 4.0.5 release notes (#6346)

* docs: add 4.0.6 release notes

* update: 4.0.4 -> 4.0.6 for release build example

---------

Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-12-08 21:43:52 -06:00
Yat Ho
002c891216
refactor: use string_view literals instead of C string literals (#7266) 2024-11-26 19:52:05 -06:00
Yat Ho
27955a9c8a
fix: CI errors related to REBUILD_WEB (#7252)
* ci: bump debian image from 11 to 12

debian 11 has npm 7.5.2, which is lower than our minimum required version 8.0.307.

* build: find `npm.cmd` on Windows

* chore: trigger CI

* Revert "chore: trigger CI"

This reverts commit adc8f4ec98.

* Revert "ci: bump debian image from 11 to 12"

This reverts commit 4730d350b3.

* ci: use `actions/setup-node` in debian 11

* ci: don't test `REBUILD_WEB` if only `libtransmission` changed

* ci: don't test `REBUILD_WEB` if only `third-party` changed
2024-11-24 19:51:13 -06:00
Cœur
1074c30e60
fix: macOS CI (#7254)
* fix macOS CI

* adding `--formulae`
2024-11-21 13:34:34 -06:00
Yat Ho
836e020853
ci: test REBUILD_WEB=ON (#7242) 2024-11-18 11:15:07 -06:00
Rukario
a1befba4d8
Update torrent-row.js (#7245) 2024-11-18 09:30:21 -06:00
Yat Ho
384b265033
chore: bump libutp (#7250) 2024-11-17 20:37:34 -06:00
Charles Kerr
d1a1a0adae
fix: clang-tidy header warnings, pt. 1 (#7228)
* fix: warning: deleted member function should be public [modernize-use-equals-delete]

* fix: warning: variable has inline specifier but is implicitly inlined [readability-redundant-inline-specifier]

* fix: warning: enum uses a larger base type than necessary for its value set [performance-enum-size]

* fix: warning: initializer for member is redundant [readability-redundant-member-init]

* warning: parameter is const-qualified in the function declaration; const-qualification of parameters only has an effect in function definitions [readability-avoid-const-params-in-decls]
2024-11-17 20:04:55 -06:00
Rukario
e45fbade2e
feat: more gray for grayed out objects 2024-11-17 17:33:16 -06:00
Yat Ho
7e4b4f10a1
refactor: faster wishlist (#7027)
* chore: housekeeping

* perf: short circuit peer has block check

* refactor: track active requests in each respective peer

* refactor: swap `ActiveRequests` with new request tracking method

* refactor: use bitfield to store active requests per peer

* perf: check active request numbers first

* refactor: initialise candidate values in constructor

* refactor: better naming

* refactor: use `find_by_block()` more

* refactor: store wishlist mediator in swarm object

* test: make it compile

* test: update endgame test

* test: new test for choke event

* test: remove redundant lines

* test: new test for request event

* test: new test for reject event

* refactor: cache block have state in wishlist

* test: fix `gotBlockResortsPiece`

* fixup! refactor: track active requests in each respective peer

* fixup! test: fix `gotBlockResortsPiece`

* fix: count webseeds when calculating active requests

* build: update xcode project

* fix: add missing `candidates_dirty_` checks

* chore: remove old `depends-on` comments

* fixup! refactor: use bitfield to store active requests per peer

* refactor: extract block peer event to separate function

* perf: reorder conditions by overhead

* perf: check for completed block instead of completed piece

* chore: remove duplicated "unrequested piece" check

* refactor: merge similar block size sanity check

* refactor: use map to store number of requests in wishlist

* refactor: add asserts

* refactor: flush write buffer as soon as there is new data

* refactor: more accurate function naming

* fix: account for corrupt pieces in wishlist

* fix: account for unaligned blocks in wishlist

* Revert "fix: account for unaligned blocks in wishlist"

This reverts commit c3fce93cbae49c11d62e26caccedf55c1987aa95.

* fixup! refactor: use map to store number of requests in wishlist

* fix: account for unaligned blocks in wishlist v2

* chore: add `[[nodiscard]]`

* fixup! fix: account for unaligned blocks in wishlist v2

* fix: crash when handshake finishes in the middle of function
2024-11-11 19:30:00 -06:00
Robin Seth Ekman
198ee5bd97
build: update web/CMakeLists.txt to reflect renamed files (Fixes: #7240) (#7241)
the files web/prettier.config.js and web/stylelint.config.js were renamed in b9f4509, but web/CMakeLists.txt was not updated correspondingly.
hence, using `REBUILD_WEB` would cause FTFS.
2024-11-11 00:29:25 -06:00
Yat Ho
5a881191d0
fix: allow unreachable peers to be retried (#6975)
`tr_peer_info::reconnect_interval_has_passed()` contains logic to increase the reconnect interval for unreachable peers, but it has no effect at all currently because they wouldn't be tried in the first place.
2024-11-08 12:44:27 -06:00
Yat Ho
49f4c604da
fix: don't increment failure count when stopping torrent (#7238)
* fix: don't increment failure count when stopping torrent

* refactor: don't reset failure count on torrent stop
2024-11-08 12:42:59 -06:00
Yat Ho
6bf62959b4
refactor: set CURLOPT_MAXREDIRS once (#7233) 2024-11-06 14:36:34 -06:00
Yat Ho
f1102f0b4d
fix: don't double count webseed download data rate (#7235)
Regression from f1a53840f9
2024-11-06 13:55:58 -06:00
Yat Ho
2315903015
build: accept false constant other than OFF for REBUILD_WEB (#7219) 2024-11-03 16:50:04 -06:00
Cœur
c97527b555
Crash fix: "Invalid parameter not satisfying: aString != nil" (#7226) 2024-11-03 16:48:19 -06:00
Dzmitry Neviadomski
73f9600326
fix: support dark mode colors with pieces bar on macOS (#6959)
Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>
2024-11-02 20:04:42 -05:00
Yat Ho
7978120c41
fix: save resume when shutting down (#7216)
Regression from 24bb159bfe
Xref: https://trac.transmissionbt.com/ticket/2317
2024-11-02 16:08:00 -05:00
Yat Ho
361b5c6152
fix: support nodejs below v20.11 for generate_buildonly.js (#7214) 2024-10-31 22:15:05 -05:00
Yat Ho
2c82f3d83d
fix: add missing settings.json docs and app defaults (#7218)
* docs: `trash-can-enabled` gtk only

* fix: add `pidfile` to daemon app defaults

* perf: don't copy string literal to variant
2024-10-31 22:14:44 -05:00
Yat Ho
1f36458e10
build: fail if clang-tidy is not found when -DRUN_CLANG_TIDY=ON (#7210) 2024-10-30 13:29:38 -05:00
Yat Ho
f0e7c3ed74
chore: convert transmission-web to ES module (#7209) 2024-10-30 10:48:38 -05:00
Rukario
dce515f37c
feat: display percent in progress bar for web client (#5937)
* Update transmission-app.scss

* Update torrent-row.js

* Update transmission-app.scss

* Update transmission-app.scss

* Update transmission-app.scss

* Update transmission-app.scss

Co-authored-by: Yat Ho <lagoho7@gmail.com>

* Update file-row.js

Co-authored-by: Yat Ho <lagoho7@gmail.com>

* Update formatter.js

Co-authored-by: Yat Ho <lagoho7@gmail.com>

* Update inspector.js

Co-authored-by: Yat Ho <lagoho7@gmail.com>

* Update torrent-row.js

Co-authored-by: Yat Ho <lagoho7@gmail.com>

* Update torrent.js

Co-authored-by: Yat Ho <lagoho7@gmail.com>

* Update transmission-app.scss

* Update transmission-app.scss

---------

Co-authored-by: Yat Ho <lagoho7@gmail.com>
2024-10-30 09:19:01 -05:00
Charles Kerr
f988da6aa1
refactor: remove unused TR_SYS_FILE_APPEND (#7206) 2024-10-29 17:07:13 -05:00
Charles Kerr
c1047b8009
refactor: remove unused TR_SYS_FILE_LOCK_UN (#7207) 2024-10-29 00:14:53 -05:00
Yat Ho
c36a62e171
ci: automatically regenerate package.json.buildonly (#7198) 2024-10-28 15:45:29 -05:00
Yat Ho
d5d950e1cf
fix: always sort peer candidates by score (#7199) 2024-10-27 19:54:09 -05:00