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

[v1.6.3]: Fix Memory Leak and Improvements #157

Merged
merged 8 commits into from
Mar 3, 2020
Merged

Conversation

smusali
Copy link
Contributor

@smusali smusali commented Mar 3, 2020

This Pull Request contains lots of version dependency updates mainly because of the issues and warnings their older versions had.

According to this issue, inflight had a memory leak issue and was being used by glob which is among our dependencies.

I have also converted mocha tests to jest to make it easy to extend for our developers, replaced the usage of macaddress with built-in os and also cleaned up Gruntfile.js too.

interface.address.startsWith('10.') ||
interface.address.startsWith('172.') ||
interface.address.startsWith('192.168.'));
})[0];

Choose a reason for hiding this comment

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

Does this mean we're changing from picking the last interface given to the first?

Also, we're not saving ipv6 addresses anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

if you take a look at the current implementation here, you can see in the if condition we just check for the existence of ipv4 despite of taking all[ifaces[i]].ipv4 || all[ifaces[i]].ipv6 - we have always taken the ipv4 if possible.

Choose a reason for hiding this comment

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

Ah, good call about ipv6. Saw that and then promptly forgot it.

@smusali smusali merged commit 107dc01 into master Mar 3, 2020
@smusali smusali deleted the npmDependencies branch March 3, 2020 21:14
smusali pushed a commit that referenced this pull request Aug 21, 2020
- Update internal logging [#164](#164)

- Fix stringification issue on handling 207 [#152](#152)
- Fix memory leak issue [#157](#157)

Ref: LOG-6016
Semver: patch
smusali pushed a commit that referenced this pull request Aug 21, 2020
- Update internal logging [#164](#164)

- Fix stringification issue on handling 207 [#152](#152)
- Fix memory leak issue [#157](#157)

Ref: LOG-6016
Semver: patch
alfeng6 pushed a commit that referenced this pull request Aug 21, 2020
- Update internal logging [#164](#164)

- Fix stringification issue on handling 207 [#152](#152)
- Fix memory leak issue [#157](#157)

Ref: LOG-6016
Semver: patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants