-
Notifications
You must be signed in to change notification settings - Fork 74
Chunk buffer sends into 64 byte chunks #29
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
Chunk buffer sends into 64 byte chunks #29
Conversation
Prevents errors with unsent data on large header values, long URL paths
update! gonna rewrite this to use MemoryView instead of slices, to avoid all the newly allocated arrays. |
thanks to advice from @ladyada i was able to confirm some memory savings over my first attempt by using all numbers come from adding a debug statement into the
|
oops - somehow I missed this request for review. I won't be able to do any testing until next week, sorry. If others have tested it and are comfortable with the change, I have no concern with merging it. |
Chiming in with a success story. Using this PR I was able to successfully send large base64 images to adafruit.io that were previously unsuccessful. Much easier than breaking it up into multiple io.send_data calls. 👍 @jerryneedell |
NOTE that JSON errors can still pop up if reading back data from socket (the data was still successfully sent):
|
@ladyada or @martymcguire any reason this shouldn't be merged? |
it can be merged |
@ladyada done. I can release once the server/AP PRs are merged |
that will take a while, you can release now |
Updating https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI to 1.5.0 from 1.4.3: > Merge pull request adafruit/Adafruit_CircuitPython_ESP32SPI#29 from martymcguire/mm-chunk-socket-sends Updating https://github.com/adafruit/Adafruit_CircuitPython_SI4713 to 1.1.3 from 1.1.2: > Merge pull request adafruit/Adafruit_CircuitPython_SI4713#7 from caternuson/iss2_rds Updating https://github.com/adafruit/Adafruit_CircuitPython_Display_Button to 1.1.2 from 1.1.1: > Merge pull request adafruit/Adafruit_CircuitPython_Display_Button#8 from makermelissa/master Updating https://github.com/adafruit/Adafruit_CircuitPython_PyBadger to 0.9.0 from 0.8.0: > Merge pull request adafruit/Adafruit_CircuitPython_PyBadger#3 from kattni/business-card-update
Prevents errors with unsent data on large header values, long URL paths
Addresses the specific issue from #28