3673 Commits

Author SHA1 Message Date
M.Amin Rayej
58edfc61ab
ci: verify that tests work with panic=abort (#6283) 2024-01-16 16:10:23 +01:00
Evan Rittenhouse
bfd7b08067
time: add FutureExt::timeout (#6276) 2024-01-16 09:51:38 +01:00
M.Amin Rayej
12ce924fb9
task: add JoinSet::try_join_next (#6280) 2024-01-14 10:34:30 +00:00
Jiahao XU
e4f9bcb577
process: use pidfd on Linux when available (#6152)
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2024-01-11 13:58:23 +01:00
zixuan zhao
8463af92af
sync: document FIFO behavior of tokio::sync::Mutex (#6279)
Signed-off-by: azuredream <zhaozixuan67@gmail.com>
2024-01-11 11:15:57 +01:00
Taiki Endo
84c5674c60
ci: update clippy version to 1.75 (#6273) 2024-01-07 02:33:37 +09:00
Rustin
3275cfb638
io: make copy cooperative (#6265) 2024-01-06 17:22:26 +01:00
Taiki Endo
9780bf491f
ci: update cargo-check-external-types to 0.1.10 (#6274) 2024-01-07 00:53:08 +09:00
Taiki Endo
d6ba535ceb
ci: update actions/checkout action to v4 (#6272) 2024-01-06 20:30:28 +09:00
Alan Somers
e929d0e8b9
tests: update mio-aio to 0.8 (#6269)
This is a test-only dependency.  The main reason for the update is to
avoid transitively depending on a Nix version with a CVE.

mio-aio 0.8.0 has a substantially different API than 0.7.0.  Notably, it
no longer includes any lio_listio functionality.  So to test Tokio's
handling of EVFILT_LIO events we must go low-level and call
libc::lio_listio directly.
2024-01-06 11:14:32 +00:00
Alan Somers
2f730d4d5a
ci: update FreeBSD CI environment to 13.2 (#6270)
Because 13.1 is EoL
2024-01-06 11:59:04 +01:00
Alice Ryhl
c7e7f203ee
chore: typographic improvements (#6262) 2024-01-03 18:01:27 +00:00
Théodore Prévot
7c606ab44a
sync: add Sender::{try_,}reserve_many (#6205) 2024-01-02 16:34:56 +00:00
Alice Ryhl
2d2faf6014
rt: improve robustness of wake_in_drop_after_panic test (#6238) 2024-01-02 17:25:51 +01:00
Jesse Schalken
c029771247
task: fix typo (#6261) 2024-01-02 12:08:11 +01:00
Owen Leung
7341004535
sync: add {Receiver,UnboundedReceiver}::poll_recv_many (#6236) 2024-01-01 14:26:58 +01:00
Paul Olteanu
02b779e315
sync: add watch::Receiver::mark_unchanged (#6252) 2023-12-30 20:05:37 +00:00
Tymoteusz Wiśniewski
48345d6e48
net: add support for anonymous unix pipes (#6127) 2023-12-30 15:37:47 +00:00
kim / Motoyuki Kimura
581cd41d79
io: make repeat and sink cooperative (#6254) 2023-12-30 15:26:16 +01:00
kim / Motoyuki Kimura
5f7fe8fd0d
ci: fix new warnings on 1.75.0 (#6255) 2023-12-29 17:22:54 +01:00
Alice Ryhl
52f28dcb4f
benches: fix benchmarking conflicts for real this time (#6246) 2023-12-28 09:52:18 +00:00
Alice Ryhl
d51308b035
ci: fix configured clippy msrv (#6244) 2023-12-23 00:28:14 +00:00
Alice Ryhl
7cae89af47
benches: fix benchmarking conflicts (#6243) 2023-12-22 22:43:05 +00:00
Eddy Oyieko
53ad102cf0
util: implement Sink for Either (#6239) 2023-12-22 18:23:04 +01:00
Miccah
e7214e3670
io: implement AsyncWrite for Empty (#6235) 2023-12-20 00:05:53 +00:00
Alice Ryhl
433545782e
tests: fix name of coop_budget.rs (#6234) 2023-12-19 19:02:02 +00:00
snek
bd15bace35
io: add tokio::io::Join (#6220) 2023-12-19 19:51:48 +01:00
Alice Ryhl
410660fd54
Merge 'tokio-1.35.1' into 'master' (#6231) 2023-12-19 18:15:46 +01:00
Alice Ryhl
46ff36386d
chore: prepare Tokio v1.35.1 (#6230) tokio-1.35.1 2023-12-19 18:14:34 +01:00
Alice Ryhl
0a1695ebfb
Merge 'tokio-1.32.1' into 'tokio-1.35.x' (#6229) 2023-12-19 18:11:16 +01:00
Alice Ryhl
c4f0178b74
chore: prepare Tokio v1.32.1 (#6228) tokio-1.32.1 2023-12-19 18:07:05 +01:00
Alice Ryhl
22b3a65934
Merge 'tokio-1.25.3' into 'tokio-1.32.x' (#6227) 2023-12-19 18:00:41 +01:00
Noah Kennedy
0d362339d5
chore: release v1.25.3 (#6223)
# 1.25.3 (December 17thm 2023)

### Fixed
- io: add budgeting to `tokio::runtime::io::registration::async_io` ([#6221])

[#6221]: https://github.com/tokio-rs/tokio/pull/6221
tokio-1.25.3
2023-12-19 17:09:44 +01:00
Noah Kennedy
ab7313ff6b
io: add budgeting to tokio::runtime::io::registration::async_io (#6221)
Fixes #5946.
Fixes #4782.

This change adds budgeting to most of the remaining unbudgeted IO operations which can complete instantly, including datagram send/recv operations and listener socket accepts.

This is particularly significant for scenarios in which resource limits are hit, as it can be common for things like listener tasks to spin when receiving errors and just log them, busy looping worker threads which might otherwise be handling existing connections and closing them.

This can also sometimes lead to complex failure scenarios within datagram systems experiencing resource exhaustion.
2023-12-17 22:34:51 +00:00
oliver
4aa7bbff4c
chore: typo fixes (#6213)
Co-authored-by: kwfn <calm.rain5339@fastmail.com>
2023-12-11 19:22:55 +00:00
Bryan Baron
c06a55088b
coop: fix typo in docs for task::unconstrained (#6212) 2023-12-11 17:50:24 +01:00
Alice Ryhl
92a3455c66
chore: prepare Tokio v1.35.0 (#6197) tokio-1.35.0 2023-12-08 23:35:27 +01:00
Alice Ryhl
1968565825
chore: use relaxed load for unsync_load (#6203) 2023-12-08 22:28:40 +00:00
Alice Ryhl
c9273f1aee
sync: improve safety comments for WakeList (#6200) 2023-12-08 18:57:01 +01:00
Alice Ryhl
e05d0f8c2c
changelog: fix missing link for 1.8.2 (#6199) 2023-12-08 17:51:46 +00:00
Alice Ryhl
debcb2254a
Revert "net: add SocketAddr::as_abstract_namespace (#6144)" (#6198)
This reverts commit 2400769b54fd31186b07bfbec277e846e8d64c16.
2023-12-08 18:44:32 +01:00
tijsvd
83b7397e44
io: drop the Sized requirements from AsyncReadExt.read_buf (#6169) 2023-12-08 09:51:08 +01:00
NAHO
3991f9f9a4
docs: fix typo in 'tokio/src/sync/broadcast.rs' (#6182) 2023-12-08 09:48:36 +01:00
Alice Ryhl
48c0e6283f
chore: use relaxed load for unsync_load on miri (#6179) 2023-12-08 09:48:15 +01:00
Jack Wrenn
d561b5850a
taskdump: skip notified tasks during taskdumps (#6194)
Fixes #6051
2023-12-08 09:47:46 +01:00
Weijia Jiang
3a4aef17b2
runtime: reduce the lock contention in task spawn (#6001) 2023-12-07 10:45:07 +00:00
Andrew Walbran
a0a58d7edd
tokio: update nix dependency to 0.27.1 (#6190) 2023-12-04 16:09:58 +01:00
fzyzcjy
ed4f766c98
runtime: make Runtime unwind safe (#6189) 2023-12-04 13:07:31 +01:00
zhiqiangxu
3ac4cfb68a
runtime: move comment to the right place (#6184) 2023-12-03 11:47:40 +01:00
Kamila Borowska
7232424a81
chore: remove uses of unsafe from maybe_done.rs (#6180) 2023-12-01 12:51:42 +01:00