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

[jormungandr] fix zmq socket lifetime #3874

Merged
merged 1 commit into from
Dec 9, 2022
Merged

[jormungandr] fix zmq socket lifetime #3874

merged 1 commit into from
Dec 9, 2022

Conversation

xlqian
Copy link
Member

@xlqian xlqian commented Dec 9, 2022

the lifetime of the zmq socket was based on the time of the last successful request, which extends its lifetime in practice.

In this PR, zmq socket lifetime will be based on its spawn time, which means once the TTL is out, zmq socket will be closed and removed from the socket pool.

@xlqian xlqian added the hotfix label Dec 9, 2022
@xlqian xlqian requested review from pbench and azime December 9, 2022 12:29
@xlqian xlqian marked this pull request as ready for review December 9, 2022 12:29
@xlqian xlqian force-pushed the fix_socket_lifetime branch from 41c25be to ad71061 Compare December 9, 2022 13:30
@xlqian xlqian force-pushed the fix_socket_lifetime branch from ad71061 to 6dc0413 Compare December 9, 2022 14:52
@xlqian xlqian merged commit 3b23437 into dev Dec 9, 2022
@xlqian xlqian deleted the fix_socket_lifetime branch December 9, 2022 15:15
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 9, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@woshilapin woshilapin changed the title [Jormungandr] fix zmq socket lifetime [jormungandr] fix zmq socket lifetime Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants