You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 18, 2021. It is now read-only.
The socket context makes the CFSocket retain and release its owner, why?
CFSocketContext ctxt = { 0, (__bridge void *)(self), CFRetain, CFRelease, NULL };
there should be no reason to do that, since you're invalidating and releasing the socket on dealloc. Creating the socket using the context like:
CFSocketContext ctxt = { 0, (__bridge void *)(self), NULL, NULL, NULL };
seems to work fine. This fixes the deadlock problem I was having, but I'm unsure as to whether the retain/release socket context is on purpose.