-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebSocket support #32
Comments
Interesting. HTTP/2 proxy is supposed to be indifferent to target protocol, be it ws, wss, as the client is expected to just send standard CONNECT in both cases and then proceed with actual protocol. |
How can I get these logs? |
I believe adding |
For
For
Seems like some unexpected truncated, make the Chrome still wait for the response. |
Thanks, that's a very good report! |
Thanks for your attention. |
👋 hey @sergeyfrolov is this is your roadmap? |
@angristan I'd like to eventually get to this, but haven't been able to find the time yet. I tried to reproduce it again, and it seems that speedtest.net no longer uses |
@sergeyfrolov |
So this is a bit weird, http://demos.kaazing.com/echo/index.html seems to work: However I get this error: On Mastodon, which uses websockets for the streaming API (the timelines), I get many of these: But it's not 100% broken. it seems there is a sever delay, sometimes the timelines will scroll sometimes they won't... 🤔 |
|
In Firefox, websockets are fully working indeed... |
Do you still see delays when you visit mastodon via forwardproxy using Firefox? I have a suspicion that the delay might be a separate issue, not caused by the Chromium bug. |
No, I don't see any delay. |
I just now do some little test. In Chrome, without this plugin, In Chrome, use this plugin, In Firefox, use this plugin, everything works fine. So the conclusion is maybe there some bug in Chrome? |
1. What version of Caddy are you using (
caddy -version
)?Caddy 0.11.0
2. What are you trying to do?
Make a http2 proxy use
caddy
, I hope it can supportWebSocket
.I use Chrome + SwitchyOmega for client.
PAC file:
3. What is your entire Caddyfile?
4. How did you run Caddy (give the full command and describe the execution environment)?
5. Please paste any relevant HTTP request(s) here.
Please open this js code example:
Click run, modify the first line from
wss://echo.websocket.org
tows://echo.websocket.org
, and run again.6. What did you expect to see?
Both protocols should be supported (
ws
andwss
).7. What did you see instead (give full error messages and/or log)?
Only
wss
supported,ws
cant work, which works normally without proxy.8. How can someone who is starting from scratch reproduce the bug as minimally as possible?
caddy
withforwardproxy
.Caddyfile
.http2 proxy server
.Chrome
to use thehttp2 proxy
.The text was updated successfully, but these errors were encountered: