-
Notifications
You must be signed in to change notification settings - Fork 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
Optimize input queue processing in SRProxyConnect. #455
Conversation
This looks good, @nlutsenko. Thanks for submitting this. We can't reproduce the bug that this fixes, but we've seen it in the field. We are still using a fork of SocketRocket, if you remember. I'll apply this commit to our fork and it will go out in our next App Store release, and we'll let you know if we see a drop in crash reports for this problem. |
What does the stack trace look like when Honestly, I think the proper solution here is to either
Having this strange scenario where you potentially cannot use any of the variables in |
@richardjrossiii said
You can see the stack trace from two separate apps that have encountered this problem in #421.
I'm not sure if there is an ivar reference to the SRProxyConnect within the SocketRocket project, but it does seem possible that the SRProxyConnect object is still set as the delegate of a NSStream object at that time, and this property is listed as having Does that help with your assessment? |
94d8b54
to
02d04dc
Compare
02d04dc
to
9c2201f
Compare
Per our discussion - I ended up just moving the cleanup for proxy connect to the work queue, instead of creating an autoreleasing local scope variable. Biggest reason - it's disconnected and most of the calls are in a separate method. |
#shipit |
…y.crash Optimize input queue processing in SRProxyConnect.
Purely to tackle the theory described in #421 (comment)