Skip to content

fix: possible race condition sending wss packets - #1016

Merged
vladimir-a-sap merged 11 commits into
mainfrom
stabilize-speech-to-speech-ci
Sep 1, 2026
Merged

fix: possible race condition sending wss packets#1016
vladimir-a-sap merged 11 commits into
mainfrom
stabilize-speech-to-speech-ci

Conversation

@vladimir-a-sap

@vladimir-a-sap vladimir-a-sap commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Context / Cause

  • Java WSS.send(...) does not actually send data synchronously (failed expectation)
  • Reordered packets (e.g. sending something after model response has been requested) interrupts ongoing model response
  • Test waits until timeout and fails

Fix

@vladimir-a-sap
vladimir-a-sap enabled auto-merge (squash) August 31, 2026 17:19
@vladimir-a-sap vladimir-a-sap changed the title fix: [Realtime API] fix possible race condition sending wss packets fix: possible race condition sending wss packets Aug 31, 2026

@CharlesDuboisSAP CharlesDuboisSAP left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would you need to change the Javadoc to indicate that the API is blocking or was this already the expectation?

Comment thread docs/release_notes.md Outdated
@vladimir-a-sap

Copy link
Copy Markdown
Contributor Author

Would you need to change the Javadoc to indicate that the API is blocking or was this already the expectation?

no, the exposed api signatures are all sync, no changes there or in the docs are needed

Co-authored-by: Charles Dubois <103174266+CharlesDuboisSAP@users.noreply.github.com>
@vladimir-a-sap
vladimir-a-sap merged commit a27f442 into main Sep 1, 2026
7 checks passed
@vladimir-a-sap
vladimir-a-sap deleted the stabilize-speech-to-speech-ci branch September 1, 2026 08:31
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.

4 participants