Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed sockets should still be read til the end of data #10

Open
ctron opened this issue Sep 25, 2020 · 0 comments
Open

Closed sockets should still be read til the end of data #10

ctron opened this issue Sep 25, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@ctron
Copy link
Member

ctron commented Sep 25, 2020

When the ESP sends a close notification for a socket, that socket may still have data in its buffer.

However, when reading, we check for the "close" state first. So you are unable to read the remaining data.

To my understanding it may also be the case that the ESP sends out a close notification, still holding data for that socket. So we may have the additional issue of reading data from a socket we know that is closed, but need to drain the ESP's socket buffer.

@ctron ctron added the bug Something isn't working label Sep 25, 2020
@ctron ctron added this to To do in Cortex-M Devices Sep 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

1 participant