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(whisper): Reconnects on socket closed while operating. #566

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

damencho
Copy link
Member

Executes stop and connect in a different from the websocket messages thread as recommended in jetty docs.

Executes stop and connect in a different from the websocket messages thread as recommended in jetty docs.
Copy link

codecov bot commented Oct 30, 2024

Codecov Report

Attention: Patch coverage is 2.27273% with 43 lines in your changes missing coverage. Please review.

Project coverage is 18.89%. Comparing base (6e60482) to head (57339b2).
Report is 33 commits behind head on master.

Files with missing lines Patch % Lines
...g/jitsi/jigasi/transcription/WhisperWebsocket.java 0.00% 36 Missing ⚠️
...si/jigasi/transcription/WhisperConnectionPool.java 0.00% 4 Missing ⚠️
...c/main/java/org/jitsi/jigasi/stats/Statistics.java 25.00% 3 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #566      +/-   ##
============================================
- Coverage     20.70%   18.89%   -1.82%     
- Complexity      290      294       +4     
============================================
  Files            76       82       +6     
  Lines          6313     7051     +738     
  Branches        838      924      +86     
============================================
+ Hits           1307     1332      +25     
- Misses         4787     5490     +703     
- Partials        219      229      +10     
Files with missing lines Coverage Δ
...c/main/java/org/jitsi/jigasi/stats/Statistics.java 31.39% <25.00%> (-1.75%) ⬇️
...si/jigasi/transcription/WhisperConnectionPool.java 0.00% <0.00%> (ø)
...g/jitsi/jigasi/transcription/WhisperWebsocket.java 0.00% <0.00%> (ø)

... and 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3548be7...57339b2. Read the comment docs.

@@ -67,7 +62,7 @@ public WhisperWebsocket getConnection(String roomId)
final WhisperWebsocket socket = new WhisperWebsocket();

// connect socket in new thread to not block Smack threads
Copy link
Member

Choose a reason for hiding this comment

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

Are we not worried about blocking Smack threads anymore? If not, update the doc :)

Copy link
Member Author

Choose a reason for hiding this comment

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

It is done inside those methods.

@@ -83,29 +78,19 @@ public WhisperWebsocket getConnection(String roomId)
public void end(String roomId, String participantId)
{
// execute this in new thread to not block Smack
Copy link
Member

Choose a reason for hiding this comment

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

Same

Copy link
Member Author

Choose a reason for hiding this comment

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

It is done inside those methods.

@damencho damencho merged commit a0e043b into master Oct 30, 2024
2 checks passed
@damencho damencho deleted the ws-whisper-reconnect branch October 30, 2024 22:28
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