chirpstack-api
chirpstack-api copied to clipboard
Bump tokio from 1.9.0 to 1.16.1 in /rust
Bumps tokio from 1.9.0 to 1.16.1.
Release notes
Sourced from tokio's releases.
Tokio v1.16.1
1.16.1 (January 28, 2022)
This release fixes a bug in #4428 with the change #4437.
#4428: tokio-rs/tokio#4428 #4437: tokio-rs/tokio#4437
Tokio v1.16.0
Fixes a soundness bug in
io::Take
(#4428). The unsoundness is exposed when leaking memory in the givenAsyncRead
implementation and then overwriting the supplied buffer:impl AsyncRead for Buggy { fn poll_read( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &mut ReadBuf<'_> ) -> Poll<Result<()>> { let new_buf = vec![0; 5].leak(); *buf = ReadBuf::new(new_buf); buf.put_slice(b"hello"); Poll::Ready(Ok(())) } }
Also, this release includes improvements to the multi-threaded scheduler that can increase throughput by up to 20% in some cases (#4383).
Fixed
- io: soundness don't expose uninitialized memory when using
io::Take
in edge case (#4428)- fs: ensure
File::write
results in awrite
syscall when the runtime shuts down (#4316)- process: drop pipe after child exits in
wait_with_output
(#4315)- rt: improve error message when spawning a thread fails (#4398)
- rt: reduce false-positive thread wakups in the multi-threaded scheduler (#4383)
- sync: don't inherit
Send
fromparking_lot::*Guard
(#4359)Added
- net:
TcpSocket::linger()
andset_linger()
(#4324)- net: impl
UnwindSafe
for socket types (#4384)- rt: impl
UnwindSafe
forJoinHandle
(#4418)- sync:
watch::Receiver::has_changed()
(#4342)- sync:
oneshot::Receiver::blocking_recv()
(#4334)- sync:
RwLock
blocking operations (#4425)Unstable
... (truncated)
Commits
91b9850
chore: prepare Tokio v1.16.1 release (#4438)3c46705
io: fix take pointer check (#4437)afd2189
chore: prepare Tokio v1.16 release (#4431)986b88b
chore: update year in LICENSE files (#4429)257053e
util: addspawn_pinned
(#3370)5af9e0d
sync: add blocking lock methods toRwLock
(#4425)8f77ee8
net: add generic trait to combine UnixListener and TcpListener (#4385)2747043
tests: enable running wasm32-unknown-unknown tests (#4421)2a5071f
feat: implementFramed::map_codec
(#4427)621790e
io: fixtake
when using evil reader (#4428)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) -
@dependabot use these labels
will set the current labels as the default for future PRs for this repo and language -
@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language -
@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language -
@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the Security Alerts page.