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

TLS bridge not re-connecting on Windows #154

Closed
dkaukov opened this Issue May 12, 2016 · 0 comments

Comments

Projects
None yet
2 participants
@dkaukov
Contributor

dkaukov commented May 12, 2016

mosquitto version 1.4.8. Bridge is successfully connected on start, but once connection is dropped it is not able to re-connect again. To reconnect I have to re-start server. It is working fine for non-TLS bridge connection and also works fine in Linux build in same environment

Log:

1463029685: mosquitto version 1.4.8 (build date 14/02/2016 15:33:31.09) starting
1463029685: Config loaded from mosquitto.conf.
1463029685: Opening ipv6 listen socket on port 1883.
1463029685: Opening ipv4 listen socket on port 1883.
1463029685: Bridge local.Prod-213213123213- doing local SUBSCRIBE on topic XXXXXXXXXXXXX/+/PUB/#
1463029685: Bridge local.Prod-213213123213- doing local SUBSCRIBE on topic XXXXXXXXXXXXX/+/REP/#
1463029685: Bridge local.Prod-213213123213- doing local SUBSCRIBE on topic XXXXXXXXXXXXX-PP/+/REP/#
1463029685: Connecting bridge ot (xxx.com.au:8883)
1463029685: Bridge Prod-213213123213- sending CONNECT
1463029686: Received CONNACK on connection local.Prod-213213123213-.
1463029686: Bridge local.Prod-213213123213- sending UNSUBSCRIBE (Mid: 43, Topic: XXXXXXXXXXXXX-PP/+/PUB/#)
1463029686: Bridge local.Prod-213213123213- sending UNSUBSCRIBE (Mid: 44, Topic: XXXXXXXXXXXXX-PP/+/REP/#)
1463029686: Bridge local.Prod-213213123213- sending UNSUBSCRIBE (Mid: 45, Topic: XXXXXXXXXXXXX-PP/+/REP/#)
1463029686: Received UNSUBACK from local.Prod-213213123213-
1463029686: Received UNSUBACK from local.Prod-213213123213-
1463029686: Received UNSUBACK from local.Prod-213213123213-
1463029699: Socket error on client local.Prod-213213123213-, disconnecting.
1463029704: Bridge local.Prod-213213123213- doing local SUBSCRIBE on topic XXXXXXXXXXXXX/+/PUB/#
1463029704: Bridge local.Prod-213213123213- doing local SUBSCRIBE on topic XXXXXXXXXXXXX/+/REP/#
1463029704: Bridge local.Prod-213213123213- doing local SUBSCRIBE on topic XXXXXXXXXXXXX-PP/+/REP/#
1463029704: Connecting bridge ot (xxx.com.au:8883)
1463029710: Bridge local.Prod-213213123213- doing local SUBSCRIBE on topic XXXXXXXXXXXXX/+/PUB/#
1463029710: Bridge local.Prod-213213123213- doing local SUBSCRIBE on topic XXXXXXXXXXXXX/+/REP/#
1463029710: Bridge local.Prod-213213123213- doing local SUBSCRIBE on topic XXXXXXXXXXXXX-PP/+/REP/#
1463029710: Connecting bridge ot (xxx.com.au:8883)
1463029716: Bridge local.Prod-213213123213- doing local SUBSCRIBE on topic XXXXXXXXXXXXX/+/PUB/#
1463029716: Bridge local.Prod-213213123213- doing local SUBSCRIBE on topic XXXXXXXXXXXXX/+/REP/#
1463029716: Bridge local.Prod-213213123213- doing local SUBSCRIBE on topic XXXXXXXXXXXXX-PP/+/REP/#
1463029716: Connecting bridge ot (xxx.com.au:8883)
1463029722: Bridge local.Prod-213213123213- doing local SUBSCRIBE on topic XXXXXXXXXXXXX/+/PUB/#
1463029722: Bridge local.Prod-213213123213- doing local SUBSCRIBE on topic XXXXXXXXXXXXX/+/REP/#
1463029722: Bridge local.Prod-213213123213- doing local SUBSCRIBE on topic XXXXXXXXXXXXX-PP/+/REP/#
1463029722: Connecting bridge ot (xxx.com.au:8883)
1463029726: mosquitto version 1.4.8 terminating
1463029726: Saving in-memory database to mosquitto.db.

ralight added a commit that referenced this issue May 14, 2016

Workaround for Windows SSL (#160)
Closes #154.

Signed-off-by: Dmitry Kaukov <dkaukov@opentable.com>

ralight added a commit that referenced this issue May 14, 2016

Changelog update.
Fix reconnecting for bridges that use TLS on Windows.

Closes #154.

Thanks to Dmitry Kaukov.

@ralight ralight closed this May 14, 2016

@ralight ralight added this to the 1.4.9 milestone May 19, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment