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

Fix reconnection failure upon network disconnect(Issue#584) #612

Merged
merged 5 commits into from
Dec 15, 2018
Merged

Conversation

desokroshan
Copy link
Contributor

  1. Use default value for clean session upon connect and subsequent reconnects if any
  2. Update mqttWebSocketURL to use endpoint with HTTP Port

1. Set default value for clean session mqtt option
2. Update mqttWebSocketURL to use HTTP Port
Remove unused variables
@frankmuellr frankmuellr requested review from scb01 and minbi December 12, 2018 22:06
@frankmuellr frankmuellr added pull request iot Issues with the AWS Android SDK for Internet of Things (IoT) labels Dec 12, 2018
Use the default value for clean session option without setting it explicitly
@@ -962,7 +955,7 @@ void reconnectToSession() {

try {
final String mqttWebSocketURL = signer
.getSignedUrl(endpoint, clientCredentialsProvider.getCredentials(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a comment on why this being changed from "endpoint" to "endpointWithHttpPort"?

@scb01 scb01 merged commit c3c706b into master Dec 15, 2018
@scb01 scb01 deleted the iot branch December 15, 2018 01:26
sunchunqiang pushed a commit that referenced this pull request Mar 5, 2019
* Fix reconnection failure upon network disconnect

1. Set default value for clean session mqtt option
2. Update mqttWebSocketURL to use HTTP Port

* Update AwsIotEndpointUtility.java

Remove unused variables

* Use default value for clean session

Use the default value for clean session option without setting it explicitly

* Update AWSIotMqttManager.java

* set default cleanSession to true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iot Issues with the AWS Android SDK for Internet of Things (IoT)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants