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

Expose SignalWebSocket::is_used #274

Merged
merged 1 commit into from
Jan 3, 2024
Merged

Conversation

Schmiddiii
Copy link
Contributor

@Schmiddiii Schmiddiii commented Dec 30, 2023

This is required to fix a panic web socket request handler not in use due to reuse of the same websocket between different receive_messages calls.

Downstream PR: whisperfish/presage#226

Schmiddiii added a commit to Schmiddiii/presage that referenced this pull request Dec 30, 2023
When `receive_messages` is called multiple times on the same manager,
this could lead to a panic "web socket request handler not in use". This
fixes this.

Requires <whisperfish/libsignal-service-rs#274>.
Also currently dependent on my fork of lss.
Copy link

codecov bot commented Dec 30, 2023

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (9af1f42) 3.62% compared to head (1561b75) 3.61%.
Report is 2 commits behind head on main.

Files Patch % Lines
libsignal-service/src/websocket.rs 0.00% 6 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##            main    #274      +/-   ##
========================================
- Coverage   3.62%   3.61%   -0.02%     
========================================
  Files         37      37              
  Lines       2841    2849       +8     
========================================
  Hits         103     103              
- Misses      2738    2746       +8     

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

@rubdos rubdos merged commit 9d55add into whisperfish:main Jan 3, 2024
12 checks passed
Schmiddiii added a commit to Schmiddiii/presage that referenced this pull request Jan 4, 2024
When `receive_messages` is called multiple times on the same manager,
this could lead to a panic "web socket request handler not in use". This
fixes this.

Requires <whisperfish/libsignal-service-rs#274>.
Also currently dependent on my fork of lss.
gferon pushed a commit to whisperfish/presage that referenced this pull request Jan 4, 2024
When `receive_messages` is called multiple times on the same manager,
this could lead to a panic "web socket request handler not in use". This
fixes this.

Requires <whisperfish/libsignal-service-rs#274>.
Also currently dependent on my fork of lss.
@Schmiddiii Schmiddiii deleted the ws-is-used branch February 21, 2024 12:16
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