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 recv_into for larger fetches #166

Merged
merged 1 commit into from
May 31, 2022
Merged

Conversation

dhalbert
Copy link
Contributor

@dhalbert dhalbert commented May 28, 2022

Fixes #165. Rewrote socket._recv_into to remove superfluous code (received) and fix buffer, length, and index calculations.

This fix only fixes #165. I am still seeing some other oddities, like a few-second delay on some fetches. After this PR is merged to fix this current major version, I have another PR to start to revamp this library more thoroughly.

Informing original reporter here: https://forums.adafruit.com/viewtopic.php?f=60&t=189508

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks!

@tannewt tannewt merged commit 4b003b6 into adafruit:main May 31, 2022
@dhalbert dhalbert deleted the fix-recv_into branch June 1, 2022 13:29
dhalbert added a commit to dhalbert/Adafruit_CircuitPython_ESP32SPI that referenced this pull request Jun 1, 2022
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jun 2, 2022
Updating https://github.com/adafruit/Adafruit_CircuitPython_DS1307 to 2.1.11 from 2.1.10:
  > Merge pull request adafruit/Adafruit_CircuitPython_DS1307#25 from tekktrik/doc/add-typing
  > Set language to "en" for documentation
  > Switch to inclusive terminology
  > Increase min lines similarity

Updating https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI to 4.2.2 from 4.2.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_ESP32SPI#166 from dhalbert/fix-recv_into
  > Set language to "en" for documentation
  > Switch to inclusive terminology
  > Increase min lines similarity
@dhalbert dhalbert mentioned this pull request Jun 7, 2022
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.

Errors and very slow when using a simple node.js server
2 participants