[
https://issues.apache.org/jira/browse/CXF-8207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andriy Redko resolved CXF-8207.
-------------------------------
Resolution: Fixed
> SseEventSource loses lastEventId on the 2nd reconnect attempt
> -------------------------------------------------------------
>
> Key: CXF-8207
> URL: https://issues.apache.org/jira/browse/CXF-8207
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 3.3.5, 3.2.12
> Reporter: Artem Elkin
> Assignee: Andriy Redko
> Priority: Minor
> Fix For: 3.4.0, 3.3.6, 3.2.13
>
>
> [https://github.com/apache/cxf/blob/master/rt/rs/sse/src/main/java/org/apache/cxf/jaxrs/sse/client/SseEventSourceImpl.java#L82]
> here it schedules reconnect passing the lastEventId parameter.
>
> [https://github.com/apache/cxf/blob/master/rt/rs/sse/src/main/java/org/apache/cxf/jaxrs/sse/client/SseEventSourceImpl.java#L183]
> here it creates a new instance of InboundSseEventListenerDelegate with
> lastEventId=null.
>
> So if the 1st reconnect attempt failed then on the 2nd one it won't send
> lastEventId header.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)