Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

Refactor setupTimer to retimer #318

Merged
merged 6 commits into from
Jul 22, 2015
Merged

Refactor setupTimer to retimer #318

merged 6 commits into from
Jul 22, 2015

Conversation

behrad
Copy link
Contributor

@behrad behrad commented Jul 22, 2015

keepalive re-scheduling is done via retimer instead of setTimeout.

that.logger.info("keepalive timeout");
that.onNonDisconnectClose();
}, timeout);
if( this.timer ) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you write this one as if (this.timer)?

@mcollina
Copy link
Collaborator

Apart from minor linting, this is good to go :).

@mcollina
Copy link
Collaborator

Have you had the chance to see how much this impact performance?

mcollina added a commit that referenced this pull request Jul 22, 2015
Refactor setupTimer to retimer
@mcollina mcollina merged commit 1c02134 into moscajs:master Jul 22, 2015
@behrad
Copy link
Contributor Author

behrad commented Jul 22, 2015

testing...

behrad added a commit to adpdigital/mosca that referenced this pull request Jul 30, 2015
Merge pull request moscajs#318 from adpdigital/master
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants