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

Xcode 11 - swift issue #48

Open
stanwgifford opened this issue Oct 3, 2019 · 2 comments
Open

Xcode 11 - swift issue #48

stanwgifford opened this issue Oct 3, 2019 · 2 comments

Comments

@stanwgifford
Copy link

G'day,

I am not sure I can fix this however it may be useful for the maintainer to support Swift in Xcode 11.

I have a Cocoa application using swiftMQTT.

It appears that when a message is received, that is when the problem starts.

I issue the connect, and I can send happily all day. If I cease sending for a while, I get the keep alive ping.

All is good!

If however I send a message externally (mosquitto_pub) the application receives the message - however if I issue a send after that I get session disconnected, socket error etc.

I appear to be getting a connection reset by peer.

So there appears to be an issue in the receive code in swiftMQTT.

I am sorry I can't be more specific but I hope this assists the maintainer.

Otherwise apart from the one issue, swiftMQTT appears to be fairly happy in Xcode 11.

Stan

@kfdm
Copy link

kfdm commented Jan 26, 2020

I seem to be seeing the same thing. I've tried the patches in #45 and #44 trying to see which one works, but it seems like switching to https://github.com/mikegrb/SwiftMQTT worked for me.

@anatoliykant
Copy link

anatoliykant commented Mar 29, 2020

I seem to be seeing the same thing. I've tried the patches in #45 and #44 trying to see which one works, but it seems like switching to https://github.com/mikegrb/SwiftMQTT worked for me.

Hey, @kfdm.
https://github.com/mikegrb/SwiftMQTT - this is a fork of my repository 😉
mineFork

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

3 participants