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 4.0.1 release #83

Merged
merged 166 commits into from
Jan 10, 2023
Merged

prepare 4.0.1 release #83

merged 166 commits into from
Jan 10, 2023

Conversation

LaunchDarklyReleaseBot
Copy link
Contributor

[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.

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 26 commits August 2, 2022 15:48
remove SLF4J dependency, use only com.launchdarkly.logging
use SecureRandom instead of Random, just to make scanners happier
# Conflicts:
#	src/main/java/com/launchdarkly/eventsource/EventSource.java
# Conflicts:
#	CHANGELOG.md
#	gradle.properties
… 2.x

# Conflicts:
#	.ldrelease/config.yml
#	src/main/java/com/launchdarkly/eventsource/EventSource.java
remove usage of Duration for Android compatibility in new major version
update doc comments regarding thread behavior in Android
update Gradle to 7.6 + fix snapshot releases
… an event (#68)

* in streaming data mode, throw an exception if stream is closed during an event

* one more unit test
@LaunchDarklyReleaseBot LaunchDarklyReleaseBot merged commit 639eb1f into main Jan 10, 2023
@LaunchDarklyReleaseBot LaunchDarklyReleaseBot deleted the release-4.0.1 branch January 10, 2023 01:15
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