indexer-sync
indexer-sync copied to clipboard
Bump tokio from 1.4.0 to 1.16.1
Bumps tokio from 1.4.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 givenAsyncReadimplementation 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::Takein edge case (#4428)- fs: ensure
File::writeresults in awritesyscall 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
Sendfromparking_lot::*Guard(#4359)Added
- net:
TcpSocket::linger()andset_linger()(#4324)- net: impl
UnwindSafefor socket types (#4384)- rt: impl
UnwindSafeforJoinHandle(#4418)- sync:
watch::Receiver::has_changed()(#4342)- sync:
oneshot::Receiver::blocking_recv()(#4334)- sync:
RwLockblocking operations (#4425)Unstable
... (truncated)
Commits
91b9850chore: prepare Tokio v1.16.1 release (#4438)3c46705io: fix take pointer check (#4437)afd2189chore: prepare Tokio v1.16 release (#4431)986b88bchore: update year in LICENSE files (#4429)257053eutil: addspawn_pinned(#3370)5af9e0dsync: add blocking lock methods toRwLock(#4425)8f77ee8net: add generic trait to combine UnixListener and TcpListener (#4385)2747043tests: enable running wasm32-unknown-unknown tests (#4421)2a5071ffeat: implementFramed::map_codec(#4427)621790eio: fixtakewhen 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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)