Skip to content

Commit

Permalink
Releasing version 4.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
LaunchDarklyReleaseBot committed Jan 10, 2023
1 parent 639eb1f commit b97f324
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to the LaunchDarkly EventSource implementation for Java will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).

## [4.0.1] - 2023-01-09
### Added:
- `StreamClosedWithIncompleteMessageException` (see below).

### Fixed:
- When using streaming data mode (see `EventSource.Builder.streamEventData`), if the stream connection was lost before the `MessageEvent` was fully read-- that is, before encountering a blank line-- the `Reader` returned by `MessageEvent.getDataReader()` was treating this as a regular EOF condition. That was incorrect; the SSE specification says that in such a case, the incomplete message is invalid and its contents should not be used. Therefore, in this case reading from the `Reader` will throw a `StreamClosedWithIncompleteMessageException`. The caller should handle this by simply throwing away the `MessageEvent`.

## [4.0.0] - 2022-12-19
This release revises the implementation of `EventSource` so that it does not create its own worker threads. The methods for starting and reading a stream now perform synchronous I/O, and the caller is responsible for choosing what thread to start the stream and read the stream on. This makes the core implementation simpler and more efficient, and reduces possibilities for deadlock. If you want to continue using the old asynchronous push model, see the `com.launchdarkly.eventsource.background` package.

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=4.0.0
version=4.0.1
ossrhUsername=
ossrhPassword=

Expand Down

0 comments on commit b97f324

Please sign in to comment.