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

prepare 2.6.0 release #70

Merged
merged 134 commits into from
Jun 29, 2022
Merged

prepare 2.6.0 release #70

merged 134 commits into from
Jun 29, 2022

Conversation

LaunchDarklyReleaseBot
Copy link
Contributor

[2.6.0] - 2022-06-28

Added:

  • EventSource.Builder.streamEventData and EventSource.Builder.expectFields, for enabling a new event parsing mode in which event data can be consumed directly from the stream without holding it all in memory. This may be useful in applications where individual events are extremely large.
  • MessageEvent.getDataReader and MessageEvent.isStreamingData, for use with the new mode described above.
  • MessageEvent.getEventName, providing access to the event name from the event object; previously the event name was only available as a parameter of EventHandler.onMessage.

Changed:

  • Miscellaneous improvements in memory usage and performance when parsing the stream, even in the default mode.

eli-darkly and others added 30 commits December 11, 2018 14:26
# Conflicts:
#	src/main/java/com/launchdarkly/eventsource/EventSource.java
allow endpoint to be specified as either URI or HttpUrl
# Conflicts:
#	CHANGELOG.md
#	gradle.properties
replace SSL-specific config method with general-purpose HTTP config method
# Conflicts:
#	src/main/java/com/launchdarkly/eventsource/EventSource.java
omit default header value if there's a custom value
eli-darkly and others added 25 commits June 24, 2021 15:04
fix logic for shutting down after an unrecoverable error
use new stream-reading implementation to support CR-only line endings
* Bounded queue for the EventHandler thread

The unbounded queue fronting the 'event' thread can cause trouble when the
EventHandler is unable to keep up with the workload. This can lead to heap
exhaustion, GC issues and failure modes that are generally considered "bad".

Band-aid over this with a semaphore to limit the number of tasks in the queue.
The semaphore is opt-in and disabled by default to avoid any nasty surprises
for folks upgrading.

Also add 'EventSource.awaitClosed()' to allow users to wait for underlying
thread pools to completely shut down. We can't know if it's safe to clean
up resources used by the EventHandler thread if we can't be certain that it
has completely terminated.

* Address checkstyle griping in StubServer

* Fix JavaDoc issue

* Tighten up exception handling

Co-authored-by: Eli Bishop <eli@launchdarkly.com>
…red-fields

add option to ensure that expected fields are always read
@LaunchDarklyReleaseBot LaunchDarklyReleaseBot merged commit 7ed11cf into main Jun 29, 2022
@LaunchDarklyReleaseBot LaunchDarklyReleaseBot deleted the release-2.6.0 branch June 29, 2022 03:20
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.

6 participants