Skip to content

docs(tutorial/io): clarify why shutdown must be called after io::split - #860

Merged
Darksonn merged 1 commit into
tokio-rs:masterfrom
francesco-gaglione:tutorial-io-write-half-shutdown
Jun 23, 2026
Merged

Darksonn merged 1 commit into
tokio-rs:masterfrom
francesco-gaglione:tutorial-io-write-half-shutdown

Conversation

@francesco-gaglione

Copy link
Copy Markdown
Contributor

io::split wraps the writer in Arc<Mutex<...>> and does not close the connection on drop, so EOF must be signaled explicitly via shutdown().

`io::split` wraps the writer in Arc<Mutex<...>> and does not close
the connection on drop, so EOF must be signaled explicitly via
`shutdown()`.

@Darksonn Darksonn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@Darksonn
Darksonn merged commit 8d7ab14 into tokio-rs:master Jun 23, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants