Comments (3)
Indeed, io::split
does not work in that way. You must explicitly call shutdown
to close it.
from website.
Hi I am a newbie of Tokio and also stuck in this issue.
shutdown
indeed avoid hangs, but what I am trying to do is an echo client that can repeatedly send and receive bytes, the pseudo code is like:
- read a line from stdin
- send it to the echo server
- receive the eco and print it to stdout
- go back to 1
I need to reuse the writer so I can't use shutdown
, what should I do?
from website.
This is not the right place to ask for help. Please find the links at the bottom of this page and ask there.
from website.
Related Issues (20)
- Blog posts don't show their date HOT 5
- Fix a file path compatibility bug in Windows environment
- Inventing the service trait, example doesn't work? HOT 10
- Search in documentation HOT 3
- Tokio's tutorial does not mention CancellationToken HOT 6
- Bridging.md reference to crate::Result ? HOT 1
- docs: Framing Section: Refer to `tokio_util::codec::Framed`? HOT 2
- Unnecessary async block in tutorial code HOT 2
- Update Twitter Logo after rebranding HOT 3
- Sender In standard library channel is Sync HOT 1
- Want to add docker image for the website HOT 4
- Documentation: MiniTokio doesn't compile HOT 3
- The shared-state page first example can't build pass. HOT 1
- Tutorial shows table of contents on Kindle, takes space from code, easy to select accidentally HOT 1
- Animated graphic in "The Stack" works only depending on viewport height
- No explanation of backpressure HOT 1
- "Next steps with Tracing" is out of date
- Inconsistency of bash scripts in the tutorial HOT 2
- outdated info in tutorial HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from website.