aciidgh / SwiftMQTT

MQTT Client in pure swift ❤️
MIT License
270 stars 71 forks source link

Xcode 11 - swift issue #48

Open stanwgifford opened 5 years ago

stanwgifford commented 5 years ago

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 commented 4 years ago

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 commented 4 years ago

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