Pawel Kadluczka

Results 109 comments of Pawel Kadluczka

Thanks for confirming. This might be a tough one - the completion handler is passed to the webSocket task verbatim and if the task does not call the completion handler...

Note to self: Currently when closing the transport the sessions is invalidated with finishTasksAndInvalidate: https://github.com/moozzyk/SignalR-Client-Swift/blob/02e7a15670bc96924af4cc587b54cffdff758dff/Sources/SignalRClient/WebsocketsTransport.swift#L144 `invalidateAndCancel` might be a better choice as it cancel outstanding tasks: https://developer.apple.com/documentation/foundation/nsurlsession/1411538-invalidateandcancel Possibly, `send` is...

This thread could be useful: https://developer.apple.com/forums/thread/678384

Will need to figure this out. Looks like a similar issue to #13

@lexiaoyao20 - this is cool!

@lexiaoyao20 - do you mind if I use your code as part of this project?

Thanks! On Wed, May 29, 2019 at 7:07 AM lexiaoyao20 wrote: > @lexiaoyao20 - do you mind if I use your > code as part of this project? > >...

Seems like a data race in the WebSocket library. The stack trace points to this code: https://github.com/moozzyk/SignalR-Client-Swift/blob/9e235dcea5e48128c78654db67c4fbd68b59307d/Sources/SignalRClient/WebSocket.swift#L1651-L1656 but I don't immediately see anything there. I think the problem is that...

@jaragones - this is a great find. My experience is that the SwiftWebSocket project is not actively maintained and PRs linger for a long time before they are merged (if...