You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andriy Redko (Jira)" <ji...@apache.org> on 2020/02/01 18:07:00 UTC
[jira] [Updated] (CXF-8207) SseEventSource loses lastEventId on the
2nd reconnect attempt
[ https://issues.apache.org/jira/browse/CXF-8207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andriy Redko updated CXF-8207:
------------------------------
Fix Version/s: 3.3.6
3.4.0
> 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
> Reporter: Artem Elkin
> Priority: Major
> Fix For: 3.4.0, 3.3.6
>
>
> [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)