Skip to content

fko-kuptec/esp-tokio-bug

Repository files navigation

Purpose of this Repository

This example code shows an issue with using async TCP via tokio on the ESP. A write call with larger amounts of data gets stuck infinitely, because no notification is received that the stream is writeable again.

When connecting with a Windows machine to the WIFI network and sending an HTTP request using Invoke-WebRequest http://192.168.71.1/, the download gets stuck at 5683 bytes, while the ESP prints something like the following:

I (72553) esp_tokio_bug: [HTTP] connected to 192.168.71.2:61545
W (74583) esp_tokio_bug: [HTTP] timed out while writing

It is possible to then send more requests, which also get stuck at the same position.

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages