eclipse-ee4j / eclipse-ee4j/tyrus

Inconsistent Thread Usage in Tyrus WebSocket Client During Initial Request Handling

Open
#916 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
128
Forks
49
PR merge metrics
No merged PRs in 30d

Description

Context: I have two annotated @OnMessage. One handles incoming binary, and the other is String.

I observed that the Tyrus WebSocket Client appears to use two threads (Grizzly(1) and Grizzly(2)) to handle the incoming data (binary and string) when I first run the program. The next time I re-run, it only uses one thread which is : Grizzly(1). Can anyone explain to me regarding this inconsistent thread usage on the client side? thankyou.

![problem](https://github.com/user-attachments/assets/4593ccff-0bf2-439c-b97f-107e2eff98e0)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.