Charles Kerr
559f6f0332
perf: use small in libtransmission ( #5650 )
...
* refactor: reimplement Buffer using small
* refactor: use SmallBuffer in announcer-udp
* refactor: use SmallBuffer in variant-json
* refactor: use SmallBuffer in variant-benc
* refactor: use SmallBuffer in handshake
* refactor: use SmallBuffer in peer-msgs
* refactor: delete move semantics on stack-based buffers
2023-06-21 22:41:09 -05:00
tearfur
40e80989b2
encode `&key=` as fixed-width 8-digit hex ( #5652 )
2023-06-21 11:53:06 -05:00
Charles Kerr
432fc9bafc
refactor: add libsmall dependency ( #5649 )
...
* refactor: add small dependency
* refactor: use small in variant.cc
* refactor: use small in cache.h
2023-06-20 22:50:36 -05:00
tearfur
548f840b8d
fixup: refactor handshake objects to use socket address as key as well ( #5644 )
2023-06-20 13:10:26 -05:00
lvd2
d0b0810457
fix: add 'years' and 'Infinity' to ETA in transmission-remote ( #5584 )
2023-06-20 12:29:57 -05:00
tearfur
280dea4e33
add support for sending the `ipv4` parameter during ltep handshake ( #5643 )
2023-06-20 10:51:07 -05:00
tearfur
64261685d8
fix: use both address + port together as a key for peer lookup ( #5619 )
2023-06-19 20:26:39 -05:00
Charles Kerr
4b9b9920bf
refactor: prefer std::map over QMap in transmission-qt ( #5641 )
...
* refactor: use std::map instead of QMap in PrefsDialog.cc
* refactor: use std::map instead of QMap in DetailsDialog.cc
* refactor: use std::map instead of QMap in OptionsDialog.cc
* refactor: use std::map instead of QMap in FileTreeModel.cc
2023-06-19 16:51:34 -05:00
Dmitry Antipov
040bc8a1ce
fix: Qt 6.5 deprecation warning ( #5552 )
2023-06-19 16:22:54 -05:00
LaserEyess
23a52fa1c5
fixup: dedup tr_rpc_address with tr_address ( #5523 )
...
* fixup: dedup tr_rpc_address with tr_address
tr_rpc_address was duplicating a lot of work that tr_address was doing a
lot better. Fall back to using tr_address for ipv4/ipv6 connections and
make a tr_unix_addr for handling unix sockets.
* remove unnecessary functions
2023-06-19 15:51:20 -05:00
Василий Чай
ddac05954b
fix: return error when renaming into existing file ( #5563 )
2023-06-19 00:30:55 -05:00
tearfur
b8ff35c4ce
handle IPv6 NAT during LTEP handshake ( #5565 )
...
* fix: peer handshake reported wrong ipv6 address
https://github.com/transmission/transmission/issues/5542#issuecomment-1556710922
2023-06-18 19:06:31 -05:00
Charles Kerr
fd583ac878
deps: bump libfmt to v10.0.0 ( #5635 )
...
seems to be semver/minor safe for our API use
Fixes #5511 .
Possibly fixes #5627 .
2023-06-18 17:36:39 -05:00
github-actions[bot]
1664088ba5
chore: update generated transmission-web files ( #5588 )
2023-06-18 15:55:43 -05:00
Gary Elshaw
0fd7989b18
fix: restore png files that were corrupted in recent "compression" script
2023-06-18 14:11:56 -05:00
Cœur
bd9d110d45
fix 'setNeedsDisplay' is deprecated: first deprecated in macOS 10.14 ( #5633 )
2023-06-18 13:32:34 -05:00
Cœur
76166d8fa7
refactor: replace NSMutableDictionary with constant attributes ( #5221 )
2023-06-12 11:03:22 -05:00
Robin Seth Ekman
c379cd727f
fix: transmission-remote only list every other label ( fixes #5571 ) ( #5572 )
2023-06-11 20:19:54 -05:00
Charles Kerr
87f254ae90
chore: bump fast_float snaapshot to 5.2.0 ( #5605 )
2023-06-11 18:52:45 -05:00
tearfur
802619e174
fix: fixes and improvements to global IP query ( #5510 )
2023-06-11 18:27:01 -05:00
Charles Kerr
c8e84f870b
ci: remove "brew update" step ( #5606 )
2023-06-11 16:28:43 -05:00
Charles Kerr
60c68afdde
Revert "fix: some labels not displayed in transmission-remote ( #5600 )"
...
This reverts commit ebd5080a93
.
2023-06-11 11:25:35 -05:00
Charles Kerr
ebd5080a93
fix: some labels not displayed in transmission-remote ( #5600 )
...
Fixes #5571 .
2023-06-10 19:01:32 -05:00
Mike Gelfand
8ca02b8f28
Avoid locale use in `tr_truncd()` ( #5587 )
...
`tr_parseNum<>()` is implemented with `fast_float::from_chars()`, and
the latter is documented as "expecting a locale-indepent format
equivalent to what is used by std::strtod in the default ("C") locale".
To accomodate locale independent number parsing, switch back to
locale-independent number formatting in `tr_truncd()` by both removing a
`L` format specifier from `fmt::format_to_n()` call and using a fixed
"." decimal separator when truncating the value.
2023-06-10 17:09:18 -05:00
Charles Kerr
0ef58c2a20
chore: improve lossless compression of png files ( #5586 )
2023-06-05 17:03:11 -05:00
Daniel Kamil Kozar
c1c27f3da0
Expose files' begin and end pieces via RPC ( #5578 )
...
* Expose files' begin and end pieces via RPC
This adds two arguments, `beginPiece` and `endPiece`, for each of the entries
in the `files` array of the RPC's `torrent-`get` method.
The point is to allow RPC clients to display a file's completion progress as
piece-based in addition to byte-based.
2023-06-05 13:15:32 -05:00
Cœur
61679e1adc
Support localized punctuation for "Port:" ( #4452 )
...
* Support localized punctuation for "Port:"
* Code review: adopting "Port: %@"
* updating other locales for "Port" -> "Port: %@"
2023-05-29 09:43:43 -04:00
Cœur
87472672a6
build: fix xcode build ( #5521 )
2023-05-19 23:17:24 -05:00
Charles Kerr
e171cbae9c
refactor: move Buffer::add_socket() to BufferWriter::add_socket() ( #5543 )
2023-05-19 23:06:26 -05:00
Charles Kerr
ae888ef08e
perf: avoid map insertion for complete blocks received ( #5540 )
2023-05-19 18:36:07 -05:00
Charles Kerr
52b03c2489
refactor: migrate methods to buffer reader ( #5533 )
2023-05-18 16:56:29 -05:00
Charles Kerr
4fd5f3a490
refactor: use reserve_space() in peer-io ( #5532 )
2023-05-17 13:57:27 -05:00
Charles Kerr
b9698210ef
refactor: restore part of Buffer::reserve_space() ( #5529 )
2023-05-16 21:46:41 -05:00
LaserEyess
84f32d89c8
build: only format JS if files in web/ change ( #5525 )
...
In many cases the webui code is not updated for core libtransmission
changes and changes in the utils/clients. Therefore, check to see if any
web changes are made before running npm linting.
Co-authored-by: LaserEyess <LaserEyess@users.noreply.github.com>
2023-05-14 18:53:34 -05:00
Charles Kerr
2cf9678737
fix: revert buffer reserve space ( #5528 )
...
* Revert "refactor: use BufferReader, BufferWriter as function args (#5518 )"
This reverts commit c2d48a7d11
.
* Revert "fixup! refactor: add BufferReader, BufferWriter::reserve_space() (#5513 )"
This reverts commit b08e17beef
.
* Revert "refactor: add BufferReader, BufferWriter::reserve_space() (#5513 )"
This reverts commit 51fd7056ba
.
2023-05-14 17:24:42 -05:00
Charles Kerr
e88bf946e1
perf: avoid extra work in read_vc() ( #5527 )
2023-05-14 15:01:04 -05:00
Charles Kerr
8a1a6dba49
perf: avoid extra heap alloc in block cache ( #5522 )
2023-05-13 14:16:00 -05:00
Charles Kerr
69fc149f07
fix: avoid unintentional map insertions in ActiveRequests::count() ( #5520 )
2023-05-12 20:18:26 -05:00
Charles Kerr
7cabeff24f
perf: use std::bitset instead of tr_bitfield in incoming_piece_data ( #5519 )
...
Since max size is small and known at compile time, we can avoid extra heap allocations
2023-05-12 19:31:59 -05:00
Charles Kerr
c2d48a7d11
refactor: use BufferReader, BufferWriter as function args ( #5518 )
2023-05-12 18:10:08 -05:00
Charles Kerr
b08e17beef
fixup! refactor: add BufferReader, BufferWriter::reserve_space() ( #5513 )
...
chore: remove tracer fmt::print() statements
2023-05-12 11:47:01 -05:00
Charles Kerr
51fd7056ba
refactor: add BufferReader, BufferWriter::reserve_space() ( #5513 )
2023-05-12 11:15:15 -05:00
Charles Kerr
c61d8b7cf7
refactor: rename tr_tracker_view.host to .host_and_port for clarity ( #5508 )
2023-05-08 20:28:10 -05:00
Charles Kerr
ea500ecdcd
fixup! feat: add global IP cache, fix UDP connection failure warnings ( #5506 )
2023-05-08 17:53:25 -05:00
Charles Kerr
cb6358048d
fix: does not trash added torrent files when asked ( #5505 )
2023-05-08 16:21:54 -05:00
Will Thompson
dd22b52bbf
GTK: Improve appstream metainfo ( #5407 )
...
* gtk: Add release history to metainfo file
This is mandatory on Flathub (and possibly other software repositories).
On each new release, a <release> element should be prepended to this
list.
Ideally each <release> would include (translatable) release notes, but
this is the bare minimum.
https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-releases
https://www.freedesktop.org/software/appstream/docs/sect-Metadata-Releases.html
* gtk: Add more URLs to AppStream metainfo
This covers all the URL types from the AppStream specification.
https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-url
* gtk: Add translation info to AppStream metainfo
This allows information about per-language translation percentages to be
extracted at build-time and included in the repository's appstream file.
Software centres such as GNOME Software use this to indicate to the user
whether the app is translated into their language.
https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-translation
2023-05-07 13:02:49 -05:00
Charles Kerr
0d3b321bac
refactor: use snake_case for libtransmission class methods ( #5497 )
2023-05-05 23:11:05 -05:00
tearfur
d65f9329cd
refactor: followup/cleanup of `tr_global_ip_cache` PR ( #5498 )
...
* remove tr_session::bindAddress()
* replace tr_net_hasIPv6 with tr_session::has_ip_protocol()
* update comment
2023-05-05 22:05:28 -05:00
kmikita
693d202a64
refactor: save stats.json periodically and when closing session #5476 ( #5490 )
2023-05-05 15:33:23 -05:00
Jonatan
e407bcc501
docs: update translation site names ( #5481 )
...
See https://help.transifex.com/en/articles/7171815-web-application-s-domain-change
2023-05-05 13:51:18 -05:00