eclipse-ee4j / eclipse-ee4j/jersey
Do not block EventSource until first data chunk is received
Open
Priority: Major
Type: Improvement
- Dominant language
- Java
- Stars
- 730
- Forks
- 382
- PR merge metrics
- No merged PRs in 30d
Description
...
WebTarget target = client.target(uri);
EventSource client2es = new EventSource(target)
...
the last line blocks until the server sents the first chunk of data "awaitFirstContact()".
As all other data processing is also done asynchronously, it would be obvious to add a parameter to "open()" that specifies whether the first event is awaited or not.
#### Affected Versions
[2.22.1]
Contributor guide
Assessment
This issue has not been assessed yet.