Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
8.0.6
-
None
-
None
Description
The recent release of tomee 8.0.6 has a implementation of JaxRS Server Sent events (thankyou jgallimore)
However, refreshing a browser, or moving from page to page which uses server sent event, will cause the following warnings to appear in the logs. I think it may be due to chrome not closing the Event Source, just terminating the tcpip/pipe. Adding eventSource.close() on pageUnload does not fix this. The same happens with Safari / Firefox.
I don't think there is any way of suppressing these messages.
Please reduce the level of these messages, maybe to FINE, or provide a way I can prevent these errors.
Thanks.
13-Feb-2021 18:02:48.870 WARNING [http-nio-8080-exec-15] org.apache.cxf.jaxrs.sse.SseEventSinkImpl.dequeue Prematurely completing the AsyncContext due to error encountered: org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken pipe
13-Feb-2021 18:02:48.875 WARNING [http-nio-8080-exec-15] org.apache.cxf.jaxrs.sse.SseEventSinkImpl.dequeue Failed to close the AsyncContext cleanly: The request associated with the AsyncContext has already completed processing.
13-Feb-2021 18:02:48.875 WARNING [http-nio-8080-exec-15] org.apache.cxf.jaxrs.sse.SseEventSinkImpl.dequeue Prematurely completing the AsyncContext due to error encountered: org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken pipe
13-Feb-2021 18:02:48.876 WARNING [http-nio-8080-exec-15] org.apache.cxf.jaxrs.sse.SseEventSinkImpl.dequeue Prematurely completing the AsyncContext due to error encountered: org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken pipe
13-Feb-2021 18:02:48.867 WARNING [http-nio-8080-exec-18] org.apache.cxf.jaxrs.sse.SseEventSinkImpl.dequeue Prematurely completing the AsyncContext due to error encountered: org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken pipe
13-Feb-2021 18:02:48.871 WARNING [http-nio-8080-exec-13] org.apache.cxf.jaxrs.sse.SseEventSinkImpl.dequeue Prematurely completing the AsyncContext due to error encountered: org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken pipe
13-Feb-2021 18:02:48.879 WARNING [http-nio-8080-exec-18] org.apache.cxf.jaxrs.sse.SseEventSinkImpl.dequeue Failed to close the AsyncContext