You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What connects to this server is just a simple TCP client on my computer that reads exactly 8000 bytes of data and writes it to a file. I can confirm it reads it because with a std::net::TcpListener, the full data is written. With tokio, however, the client is stuck forever on read_exact (or, if using read, reads 5760 bytes and gets stuck on the next read).
Version
Platform
Code running on an Ai Thinker ESP32-CAM
Description
The code below prints "Wrote 5760 bytes" and blocks forever on the next call to write. I expect it to write all the 8000 bytes to the TCP stream.
Adding a call to
flush
right after writing does not solve the problem.The issue happens too with
write_all
(it blocks forever). It doesn’t occur on astd::net::TcpListener
.Code
Required tokio features:
io-util,net,rt
The text was updated successfully, but these errors were encountered: