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

fix: Subscription source bugs fix (#1626) #1633

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

kuznetsss
Copy link
Collaborator

Fixes #1620.
Cherry pick of #1626 into develop.

  • Add timeouts for websocket operations for connections to rippled. Without these timeouts if connection hangs for some reason, clio wouldn't know the connection is hanging.
  • Fix potential data race in choosing new subscription source which will forward messages to users.
  • Optimise switching between subscription sources.

For XRPLF#1620.

- Add timeouts for websocket operations for connections to rippled.
Without these timeouts if connection hangs for some reason, clio
wouldn't know the connection is hanging.
- Fix potential data race in choosing new subscription source which will
forward messages to users.
- Optimise switching between subscription sources.
Copy link
Collaborator

@godexsoft godexsoft left a comment

Choose a reason for hiding this comment

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

🚀

Copy link

codecov bot commented Sep 6, 2024

Codecov Report

Attention: Patch coverage is 86.20690% with 4 lines in your changes missing coverage. Please review.

Project coverage is 69.90%. Comparing base (1d33b8e) to head (352b8bc).
Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
src/etl/impl/SubscriptionSource.cpp 87.50% 0 Missing and 2 partials ⚠️
src/etl/LoadBalancer.cpp 88.88% 1 Missing ⚠️
src/util/requests/impl/WsConnectionImpl.hpp 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1633      +/-   ##
===========================================
+ Coverage    69.88%   69.90%   +0.02%     
===========================================
  Files          260      260              
  Lines         9958     9970      +12     
  Branches      5488     5494       +6     
===========================================
+ Hits          6959     6970      +11     
- Misses        1587     1588       +1     
  Partials      1412     1412              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kuznetsss kuznetsss merged commit 7088eba into XRPLF:develop Sep 6, 2024
17 checks passed
@kuznetsss kuznetsss deleted the 1620_Port_to_develop branch September 6, 2024 13:35
kuznetsss added a commit that referenced this pull request Sep 25, 2024
Fixes #1620.
Cherry pick of #1626 into develop.

- Add timeouts for websocket operations for connections to rippled.
Without these timeouts if connection hangs for some reason, clio
wouldn't know the connection is hanging.
- Fix potential data race in choosing new subscription source which will
forward messages to users.
- Optimise switching between subscription sources.
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.

SubscriptionSource bugs
2 participants