Skip to content

Releases: launchdarkly/okhttp-eventsource

1.11.0

06 Apr 18:19

Choose a tag to compare

[1.11.0] - 2020-03-30

Added:

  • New EventSource method restart() allows the caller to force a stream connection retry even if no I/O error has happened, using the same backoff behavior that would be used for errors.

1.10.2

20 Mar 19:55

Choose a tag to compare

[1.10.2] - 2020-03-20

Changed:

  • Updated OkHttp version to 3.12.10 (the latest version that still supports Java 7).

2.0.1

31 Jan 22:50

Choose a tag to compare

[2.0.1] - 2020-01-31

Fixed:

  • A build problem caused the 2.0.0 release to have an incorrect pom.xml that did not list any dependencies.

2.0.0

22 Jan 21:34

Choose a tag to compare

[2.0.0] - 2020-01-22

Added:

  • EventSource.Builder.lastEventId (replaces EventSource.setLastEventId).

Changed:

  • This library now uses OkHttp 4.x and requires Java 8 or above.
  • Configuration methods that previously specified a duration in milliseconds now use the Duration class.

Removed:

  • In EventSource: setHttpUrl, setLastEventId, setMaxReconnectTime, setReconnectionTime, setUri (these can only be set in the builder).

1.10.1

18 Oct 00:39

Choose a tag to compare

[1.10.1] - 2019-10-17

Fixed:

  • Fixed trailing period in logger name. (#34)
  • If you provide your own value for the Accept header using EventSource.Builder.headers(), it should not also send the default Accept: text/event-stream, but replace it. (#38)

1.10.0

01 Aug 21:31

Choose a tag to compare

[1.10.0] - 2019-08-01

Added:

  • EventSource.Builder.clientBuilderActions() allows you to modify the OkHttp client options in any way, such as customizing TLS behavior or any other methods supported by OkHttpClient.Builder.
  • The CI tests now include end-to-end tests against an embedded HTTP server.

1.9.1

21 Mar 00:26

Choose a tag to compare

[1.9.1] - 2019-03-20

Fixed:

  • Removed JSR305 annotations such as @Nullable. JSR305 is unsupported and obsolete, and can cause problems in Java 9.

1.9.0

13 Dec 01:35

Choose a tag to compare

[1.9.0] - 2018-12-12

Added:

  • The requestTransformer option allows you to customize the outgoing request in any way you like. (#28)
  • It is now possible to specify the endpoint as either a URI or an OkHttp HttpUrl. (#29)
  • The backoffResetThresholdMs option controls the new backoff behavior described below.
  • Added Javadoc comments for all public members.

Changed:

  • The exponential backoff behavior when a stream connection fails has changed as follows. Previously, the backoff delay would increase for each attempt if the connection could not be made at all, or if a read timeout happened; but if a connection was made and then an error (other than a timeout) occurred, the delay would be reset to the minimum value. Now, the delay is only reset if a stream connection is made and remains open for at least backoffResetThresholdMs milliseconds. The default for this value is one minute (60000).

1.8.0

06 Jul 23:12
b977544

Choose a tag to compare

[1.8.0] - 2018-04-04

Added:

  • Added maxReconnectTimeMs(long) method to EventSource.Builder to override the default maximum reconnect time of 30 seconds

1.7.1

30 Jan 19:09
93c6f72

Choose a tag to compare

[1.7.1] - 2018-01-30

Changed

  • Fixed EventSource logger name to match convention
  • Ensure background threads are daemon threads
  • Don't log IOExceptions when the stream is already being shut down