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

fix(#29): Fix reading arbitrary number of bytes. #34

Conversation

AnthonyGrondin
Copy link
Contributor

Fix #29

…_sync::Read trait impl

- Fixes an issue where reading fewer bytes than received from socket would make read
  block on reading from socket, while there are still unprocessed bytes in mbedtls internal buffers.
- Fixes embedded_io_async::Read implementation where read() should return `Ok(0)` at EOF.
@AnthonyGrondin AnthonyGrondin force-pushed the fix/reading-arbitrary-number-of-bytes-from-buffer branch from d82f9b8 to 4626e31 Compare July 15, 2024 18:35
Copy link
Collaborator

@bjoernQ bjoernQ left a comment

Choose a reason for hiding this comment

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

Thanks!

@bjoernQ
Copy link
Collaborator

bjoernQ commented Jul 16, 2024

There is currently an issue with esp-backtrace's latest patch version - merging anyways

@bjoernQ bjoernQ merged commit c21706e into esp-rs:main Jul 16, 2024
1 check 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.

Wrong length used in sync_receive() making the buffer pull more data than read.
2 participants