Artem Elkin created CXF-8207:
--------------------------------

             Summary: 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
            Reporter: Artem Elkin


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

 

So if the 1st reconnect attempt failed then on the 2nd one it will use an empty 
lastEventId.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to