Skip to content

Resource leak issue fixed and added IDE files to .gitignore#3

Merged
becheran merged 1 commit intobecheran:mainfrom
basil-eldho:fix-resource-leak
Jan 31, 2023
Merged

Resource leak issue fixed and added IDE files to .gitignore#3
becheran merged 1 commit intobecheran:mainfrom
basil-eldho:fix-resource-leak

Conversation

@basil-eldho
Copy link

Fix Resource Leak

Problem

The resource leak in the code caused by improper use of defer statement in client function was causing significant performance degradation and was affecting the stability of the system.

Solution

The solution involved identifying and addressing the source of the leak and refactored the close method. The following changes were made:

Implemented proper closure of open resources to prevent resource leak

The changes were tested in the following ways:

Verified that the resource leak no longer occurs by running the code under heavy load

Impact

The changes should have no negative impact on the rest of the code base or any dependencies. The improved memory management should result in improved performance and stability.

Mentions

@reviewers Please review these changes and let me know if there are any further updates or changes needed. Thank you!

Copy link
Owner

@becheran becheran left a comment

Choose a reason for hiding this comment

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

Thanks for fixing! Definitely a 🐛

@becheran becheran merged commit 6faeed2 into becheran:main Jan 31, 2023
@basil-eldho basil-eldho deleted the fix-resource-leak branch February 1, 2023 06:30
@basil-eldho basil-eldho restored the fix-resource-leak branch February 1, 2023 06:32
@basil-eldho basil-eldho deleted the fix-resource-leak branch February 1, 2023 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants