-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 for excessive memory use caused by the receipt of an unusually large message #289
Conversation
Thanks for the PR @robinmj. Does this only occur on device? The example works fine on the simulator? |
It fails 100% of the time for me in the iPad Retina simulator running iOS 10.1
|
Thanks! I'm going to merge this with the slight apprehension that it might create a small performance hit with the constant creating and destroying of an |
I believe we've been hitting this now, thanks for the fix! |
The attached file contains a simple app demonstrating the problem. Before running the app, start the server from the terminal:
I've never encountered this crash with iOS 8 or 9; it seems to be iOS 10-specific.
OutOfMemoryExample.zip