Skip to content

deprecate setIdleTimeout and force it to do the same as setKeepAliveTimeSeconds #79

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

Merged
merged 1 commit into from
Jan 19, 2018

Conversation

Sammers21
Copy link
Contributor

A solution for #78

Copy link
Member

@ppatierno ppatierno left a comment

Choose a reason for hiding this comment

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

@Sammers21 have you done a quick test to check that the problem is gone. It's clear but just to be sure.

@Sammers21
Copy link
Contributor Author

@ppatierno, just done.

*/
@Deprecated
@Override
public NetClientOptions setIdleTimeout(int idleTimeout) {
Copy link
Member

Choose a reason for hiding this comment

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

the return type has to be MqttClientOptions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure

@@ -82,6 +83,7 @@
private static final int MIN_TOPIC_LEN = 1;
private static final String PROTOCOL_NAME = "MQTT";
private static final int PROTOCOL_VERSION = 4;
private static final int DEFAULT_INTERNAL_NET_CLIENT_IDLE_TIMEOUT = 0;
Copy link
Member

Choose a reason for hiding this comment

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

I think that DEFAULT_IDLE_TIMEOUT is enough

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree

@@ -59,9 +59,11 @@ public void connectDisconnect(TestContext context) throws InterruptedException {
}

@Test
public void connectDisconnectNoOptions(TestContext context) {
public void connectDisconnectWithIdleOption(TestContext context) {
Copy link
Member

Choose a reason for hiding this comment

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

Why did you change the connectDisconnectNoOptions already in place ? Please create a new test for this fix.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The funny thing is that connectDisconnectNoOptions is a full duplicate of connectDisconnect so i have decided to modify it instead of removing as duplicate :)

Copy link
Member

@ppatierno ppatierno Jan 19, 2018

Choose a reason for hiding this comment

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

ah !! You are right :-) So it's ok !!

Copy link
Member

@ppatierno ppatierno left a comment

Choose a reason for hiding this comment

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

@Sammers21 can you squash the commits ... then I'll merge the PR ! Thanks !

@Sammers21 Sammers21 force-pushed the avoid_idle_hadler_error branch from 88f4136 to 4b30352 Compare January 19, 2018 08:58
@Sammers21
Copy link
Contributor Author

squashed

Copy link
Member

@ppatierno ppatierno left a comment

Choose a reason for hiding this comment

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

LGTM ! Thanks !

@ppatierno ppatierno merged commit e83ddbf into vert-x3:master Jan 19, 2018
@vietj vietj removed the to review label Jan 19, 2018
@vietj vietj added this to the 3.5.1 milestone Jan 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants