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

Fixed threading issues with managing connections #18

Merged
merged 1 commit into from
Nov 15, 2021

Conversation

SartorialOffense
Copy link
Contributor

Hi thanks for creating this project! I did see a threading issue with the connection caching and fixed it: pushed all the logic for connections into a ConnectionManager class, added/renamed some of the internal stuff and put into Internal folder so the main classes didn't get crowded. Added testing project to verify the bug was fixed. Let me know if you need me to change anything.

Pushed all the logic for connections into a
ConnectionManager class, added/renamed some of the internal stuff
and put into Internal folder. Added testing project to verify the
bug was fixed.
@Giorgi
Copy link
Owner

Giorgi commented Nov 14, 2021

@SartorialOffense Thanks for taking the time to send a PR!

Is it possible to implement it with ConcurrentDictionary and avoid locking the dictionary?

@SartorialOffense
Copy link
Contributor Author

SartorialOffense commented Nov 15, 2021 via email

@Giorgi
Copy link
Owner

Giorgi commented Nov 15, 2021

I'll accept the PR as is and if you make changes you can send a new one.

@Giorgi Giorgi merged commit b67f189 into Giorgi:main Nov 15, 2021
@SartorialOffense
Copy link
Contributor Author

SartorialOffense commented Nov 15, 2021 via email

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.

2 participants