Skip to content
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

Stream Error / Socket Error in Swift 5 & Xcode 11 Beta #46

Open
jamesbebbington opened this issue Jul 14, 2019 · 2 comments
Open

Stream Error / Socket Error in Swift 5 & Xcode 11 Beta #46

jamesbebbington opened this issue Jul 14, 2019 · 2 comments

Comments

@jamesbebbington
Copy link

I'm building a new app, targeting iOS 13 and using SwiftUI so am using Xcode 11 beta.

After receiving a message, the connection is then unexpectedly terminated:

Connected to MQTT server.
Subscribed to topic 'state'.
Message received:  Hello world
2019-07-14 16:55:49.128126+0100 MyApp[3575:118403] SocketStream read error [0x600001580540]: 1 54
Server disconnected: None
Server disconnected: Stream Error
Server disconnected: Stream Error
Connection failed:  Socket Error

This sounds very much like #39 and #42, however I've tried the Swift 5 and Xcode 10.2 fixes in in @anatoliykant's and @kervich's forks with no luck. Has anyone tested SwiftMQTT in Xcode 11 beta yet?

Thanks!

@kervich
Copy link

kervich commented Jul 16, 2019

@jamesbebbington I didn't try iOS 13 beta yet, however the issue you describe seems to be a different one - at least I see that you can subscribe to a channel and receive a message. I suggest that you first run the tests from SwiftMQTT to see what exactly is going wrong there (you might be getting ECONNRESET due to not responding to ping or something like that). Also, make sure that your issue is not a duplicate of #43

@jamesbebbington
Copy link
Author

Hey @kervich many thanks for getting back to me, I shall take a look.

noelportugal added a commit to noelportugal/SwiftMQTT that referenced this issue Mar 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants