jetfire icon indicating copy to clipboard operation
jetfire copied to clipboard

deadlocks

Open emes opened this issue 7 years ago • 1 comments

We're seeing occasional deadlocks where jetfire is the only active thread. Any chance this starscream issue is also a jetfire issue? I'm guessing not.

https://github.com/daltoniam/Starscream/issues/164#issuecomment-176634701

emes avatar Dec 21 '17 23:12 emes

This usually comes down to application architecture, which I run into myself a lot. Was getting deadlocks until I read this part on the README.

By default dispatch_get_main_queue is used, thus making all delegate methods calls run on the main thread. It is important to note that all WebSocket processing is done on a background thread, only the delegate method calls are changed when modifying the queue. The actual processing is always on a background thread and will not pause your app.

It's very important to understand what thread model this (and other websocket libraries) run on.

mistal-distal avatar Jan 23 '19 21:01 mistal-distal