-
Notifications
You must be signed in to change notification settings - Fork 51
make sure to read the whole buffer in _sock_exact_recv() #133
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
Conversation
I also used the above test code on QtPy, with the above code adapted for CircuitPython and WiFi, using the changed |
What do you think this is related to? Do you think the server is doing rate limiting or something? |
When I run this test with CPython on my laptop connected to WiFi hotspot on my phone that is using 4G to connect to the Internet, it just continuously runs until interrupted. Given that when the (slightly adapted) test code runs on the QtPy, using WiFi AP that is connected to super stable Ethernet based Internet upstream and considering it uses the same branch in |
pylint will like the code more
@brentru Could you take a look at this? |
@dhalbert is there urgency? I am out today, returning tomorrow. |
NP, this was just hanging for a while. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the change I requested! LGTM
Updating https://github.com/adafruit/Adafruit_CircuitPython_MiniMQTT to 7.1.2 from 7.1.0: > Merge pull request adafruit/Adafruit_CircuitPython_MiniMQTT#144 from vladak/f_strings > Merge pull request adafruit/Adafruit_CircuitPython_MiniMQTT#143 from vladak/network_manager_be_gone > Merge pull request adafruit/Adafruit_CircuitPython_MiniMQTT#133 from vladak/exact_recv_is_not Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA: > Updated download stats for the libraries
This change addresses the problem of returning incomplete buffer from _sock_exact_recv() in CPython.
Tested with:
It survived the wild message traffic there for bunch of minutes.