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
Alice Ryhl
9ab4ca68ac
chore: prepare Tokio v1.25.2 ( #6026 )
tokio-1.25.2
2023-09-22 18:32:04 +02:00
Alice Ryhl
60a0ca58fa
Merge 'tokio-1.20.6' into 'tokio-1.25.x' ( #6025 )
2023-09-22 18:26:10 +02:00
Alice Ryhl
938c7eb023
chore: prepare Tokio v1.20.6 ( #6024 )
tokio-1.20.6
2023-09-22 13:44:00 +02:00
Alice Ryhl
bfa9ea8d9b
io: use memchr from libc ( #5960 )
2023-09-22 13:40:01 +02:00
M.Amin Rayej
98bb3be094
ci: fix ci on tokio-1.20.x ( #5999 )
2023-09-19 00:16:15 +02:00
Alice Ryhl
25258d572a
chore: prepare Tokio v1.25.1 ( #5734 )
tokio-1.25.1
2023-05-27 20:32:20 +02:00
Alice Ryhl
8ddb58bf6c
Merge 'tokio-1.20.5' into 'tokio-1.25.x' ( #5733 )
2023-05-27 20:30:39 +02:00
Alice Ryhl
4b032a25a4
ci: use a fixed stable on 1.25.x ( #5732 )
...
This cherry-picks:
* chore: remove ntapi dev-dependency
* time: fix repeatedly_reset_entry_inserted_as_expired test
2023-05-27 17:20:38 +02:00
Alice Ryhl
edd172cd32
chore: prepare Tokio v1.20.5 ( #5731 )
tokio-1.20.5
2023-05-27 15:41:02 +02:00
Alice Ryhl
9877fa2a97
Merge 'tokio-1.18.6' into 'tokio-1.20.x' ( #5730 )
2023-05-27 15:29:59 +02:00
Alice Ryhl
0f898a3148
chore: prepare Tokio v1.18.6 ( #5729 )
tokio-1.18.6
2023-05-27 15:26:45 +02:00
Alice Ryhl
d6a9ef5333
tokio: disable default features for mio ( #5728 )
2023-05-27 15:18:15 +02:00
Alice Ryhl
2a180188c6
ci: fix CI for 1.18.x branch ( #5728 )
...
Some of these changes will be progressively reverted as we merge this
into newer branches.
2023-05-27 15:05:34 +02:00
Steven Fackler
88b1eb54fb
chore: prepare Tokio v1.25.0 release ( #5408 )
tokio-1.25.0
2023-01-29 22:44:31 +01:00
Jonathan Schwender
1f50c57185
metrics: fix steal_count
docs, add steal_operations
( #5330 )
2023-01-27 20:44:47 +01:00
Flavio Moreira
a18b3645f3
chore: update year in LICENSE files ( #5402 )
2023-01-27 16:05:48 +01:00
jake
fe2dcb9453
io: increase MAX_BUF
from 16384 to 2MiB ( #5397 )
2023-01-27 13:50:55 +01:00
Chris Wailes
c90757f07a
tests: condition unwinding tests on cfg(panic = "unwind")
( #5384 )
2023-01-21 11:12:24 +01:00
Taiki Endo
f3f8e4f17f
chore: update nix to 0.26 ( #5385 )
2023-01-21 12:17:04 +09:00
Carl Lerche
42bec96189
Merge branch 'tokio-1.24.x' into master
2023-01-17 12:59:09 -08:00
Carl Lerche
4f6a95badc
chore: prepare Tokio v1.24.2 release
2023-01-17 12:26:13 -08:00
Carl Lerche
3d33610ed2
Merge branch 'tokio-1.20.x' into tokio-1.24.x
2023-01-17 12:25:05 -08:00
Carl Lerche
38a9c6c1a5
Merge branch 'tokio-1.20.x' into master
2023-01-17 11:24:22 -08:00
Carl Lerche
f3ce29a003
chore: prepare Tokio v1.20.4 release
tokio-1.20.4
2023-01-17 11:09:42 -08:00
Carl Lerche
0d8fe5fe75
Merge branch 'tokio-1.18.x' into tokio-1.20.x
2023-01-17 11:08:06 -08:00
Taiki Endo
171ce0ff8d
chore: prepare Tokio v1.18.5 release
tokio-1.18.5
2023-01-17 23:00:38 +09:00
Taiki Endo
d6ea7a742b
Add T: Unpin
bound to ReadHalf::unsplit
2023-01-17 21:53:54 +09:00
Alice Ryhl
06f1a601bb
task: clarify doc about tasks starting immediately ( #5364 )
2023-01-14 11:11:45 -08:00
Taiki Endo
40782efb76
tokio: fix remaining issues about atomic_u64_static_once_cell.rs ( #5374 )
...
Fixes #5373
Closes #5358
- Add check for no_atomic_u64 & no_const_mutex_new (condition to atomic_u64_static_once_cell.rs is compiled)
- Allow unused_imports in TARGET_ATOMIC_U64_PROBE. I also tested other *_PROBE and found no other errors triggered by -D warning.
- Fix cfg of util::once_cell module
2023-01-14 11:11:05 -08:00
Steven Fackler
c390a62387
Add broadcast::Sender::len ( #5343 )
...
* Add broadcast::Sender::len
* Add a randomized test for broadcast::Sender::len
* fix wasm build
* less silly cfg
* review feedback
* grammar?
2023-01-12 13:53:31 -05:00
Tymoteusz Wiśniewski
f9dbfa8251
net: improve from_std
docs regarding non-blocking IO ( #5332 )
2023-01-11 12:56:27 +00:00
Alice Ryhl
31c7e82919
chore: prepare Tokio v1.24.1 ( #5357 )
tokio-1.24.1
2023-01-06 10:48:42 +00:00
David Tolnay
8d8db27442
tokio: add load and compare_exchange_weak to loom StaticAtomicU64 ( #5356 )
2023-01-06 15:19:31 +09:00
Carl Lerche
dfe252d1fa
chore: prepare Tokio v1.24.0 release ( #5353 )
tokio-1.24.0
2023-01-05 11:20:35 -08:00
Paul Loyd
21b233fa9c
test: bump version of async-stream ( #5347 )
2023-01-05 11:02:07 +01:00
Carl Lerche
72993044e6
Merge branch 'tokio-1.23.x' into master
2023-01-04 11:36:07 -08:00
Carl Lerche
1a997ffbd6
chore: prepare Tokio v1.23.1 release
tokio-1.23.1
2023-01-04 10:32:38 -08:00
Carl Lerche
a8fe333cc4
Merge branch 'tokio-1.20.x' into tokio-1.23.x
2023-01-03 15:06:02 -08:00
Carl Lerche
ba81945ffc
chore: prepare Tokio 1.20.3 release
tokio-1.20.3
2023-01-03 13:28:44 -08:00
Carl Lerche
763bdc967e
ci: run WASI tasks using latest Rust
...
This should let CI to pass.
2023-01-03 13:28:43 -08:00
Carl Lerche
9f98535877
Merge remote-tracking branch 'origin/tokio-1.18.x' into fix-named-pipes-1.20
2023-01-03 13:12:20 -08:00
Carl Lerche
9241c3eddf
chore: prepare Tokio v1.18.4 release
tokio-1.18.4
2023-01-03 13:06:27 -08:00
Carl Lerche
699573d550
net: fix named pipes server configuration builder
...
The `pipe_mode` function would erase any previously set configuration
option that is specified using the pipe_mode fit field. This patch fixes
the builder to maintain the bit field when changing the pipe mode.
2023-01-03 13:06:27 -08:00
Carl Lerche
c6552c5680
rt: use internal ThreadId implementation ( #5329 )
...
The version provided by `std` has limitations, including no way to try
to get a thread ID without panicking.
2022-12-30 15:17:35 -08:00
Carl Lerche
048049f888
rt: move task::Id into its own file ( #5327 )
...
This is a minor internal cleanup.
2022-12-30 10:49:45 -08:00
Taiki Endo
98d484e29c
ci: update cargo-check-external-types to 0.1.6 ( #5325 )
2022-12-30 19:03:44 +09:00
Taiki Endo
ef0224246b
tests: fix SB violation in LeakedBuffers ( #5322 )
2022-12-29 11:46:08 +09:00
icedrocket
4a4f80ca70
fs: use chunks in fs::read_dir
( #5309 )
2022-12-28 12:06:46 +01:00
Hyeonu Park
9af2f5ee59
io: optimize shutdown check on I/O operations ( #5300 )
...
The global flag remains and is used to prevent duplicated shutdowns and
new io operations after shutdown.
On shutdown, the driver flips the shutdown flag of every pending io
operations and wake them to fail with a shutdown error.
Fixes : #5227
2022-12-27 10:40:41 -08:00