caddy icon indicating copy to clipboard operation
caddy copied to clipboard

http3 breaks SSE

Open WeidiDeng opened this issue 1 year ago • 8 comments

From the community, apparently, SSE doesn't work with http3.

WeidiDeng avatar Aug 23 '24 06:08 WeidiDeng

/cc @dunglas since Mercure is SSE, do you happen to know how it interacts with HTTP/3?

francislavoie avatar Aug 23 '24 07:08 francislavoie

At least at protocols level, HTTP/3 works perfectly well with SSE (SSE is just a standard HTTP connection). If there is a bug, it's definitely an implementation bug.

IIRC I already tried the Mercure hub with HTTP/3 and it was working properly.

dunglas avatar Aug 23 '24 08:08 dunglas

That's odd. I've asked for a minimal reproducer in the forum thread.

mholt avatar Aug 23 '24 16:08 mholt

Yes, I hit the same issue.

jmzwcn avatar Sep 26 '24 01:09 jmzwcn

That's odd. I've asked for a minimal reproducer in the forum thread.

https://sse.dev/test

otbutz avatar Oct 10 '24 15:10 otbutz

I find browser (sse client) will reconnect when it find server support a HTTP3 and having message come at the same time. The problem is just here, having reconnect, but message data is loss. This is not expected.

jmzwcn avatar Oct 11 '24 02:10 jmzwcn

#> > That's odd. I've asked for a minimal reproducer in the forum thread.

https://sse.dev/test

Your test not run in HTTP3.Image

jmzwcn avatar Oct 11 '24 02:10 jmzwcn

Your test not run in HTTP3.

I just listed a publicly available SSE endpoint as a basis for a reproducer 😉

otbutz avatar Oct 11 '24 07:10 otbutz