[ 
https://issues.apache.org/jira/browse/CXF-8207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Artem Elkin updated CXF-8207:
-----------------------------
    Description: 
[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 won't send 
lastEventId header.

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


> 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
>            Priority: Critical
>
> [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 won't send 
> lastEventId header.



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

Reply via email to