Hi,

On Mon, May 4, 2020 at 12:36 AM Lu Tahmazyan <[email protected]> wrote:
>
> Hello there,
> We are running a reverse proxy based on Jetty's AsyncMiddleManServlet. 
> Lately, a new use case has emerged where a backend has a need to send out 
> Server Side Events (SSE).  There is this recommendation, 
> https://github.com/eclipse/jetty.project/issues/3459, which is to add a flush 
> call in ProxyServlet.onResponseContent().  However, this seems to be a bit of 
> a problem for us since we are using/subclassing AsyncMiddleManServlet.
>
> Currently, we have it implemented in newServerResponseContentTransformer with 
> Identity as the transformer, but this does not seem the right place to hook 
> in the call for a flush.
>
> Where would you suggest we add the proposed flush call to support SSE in 
> AsyncMiddleManServlet?

Please open an issue about this.

I'm not an SSE fan, TBH, and this seems a rather convoluted case.
Let's discuss the details in the issue.

-- 
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.
_______________________________________________
jetty-users mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/jetty-users

Reply via email to