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
This is in transitionSideEffects. The implemented logic appears to be that if sendEvents and queueEvents are both false, and it's not in the closing, closed, or suspended states, then it should set all the channels to failed. Perhaps it's assuming that the only remaining state that it can be in in that branch is the failed state; if so this is not a correct assumption because queueMessages can be disabled, which will make shouldSendEvents and shouldQueueEvents both return false in states like connecting and disconnected.
If I'm reading the code right, the effect of this is to make the queueMessages client option completely unusable, all subsequent operations on any channels that had already been accessed will then fail even once the lib has reconnected after the first time it goes into the connecting or disconnected states
The text was updated successfully, but these errors were encountered:
ably-cocoa/Source/ARTRealtime.m
Lines 701 to 739 in f0e4018
This is in transitionSideEffects. The implemented logic appears to be that if sendEvents and queueEvents are both false, and it's not in the closing, closed, or suspended states, then it should set all the channels to failed. Perhaps it's assuming that the only remaining state that it can be in in that branch is the
failed
state; if so this is not a correct assumption becausequeueMessages
can be disabled, which will makeshouldSendEvents
andshouldQueueEvents
both return false in states likeconnecting
anddisconnected
.If I'm reading the code right, the effect of this is to make the queueMessages client option completely unusable, all subsequent operations on any channels that had already been accessed will then fail even once the lib has reconnected after the first time it goes into the connecting or disconnected states
The text was updated successfully, but these errors were encountered: