You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@nhooyr, that seems like a stretch. We'd document it in the release notes and say how to disable it if people wanted to. But if the two sides negotiate it and the Go user expressed their intent to wire up the two sides with a ReverseProxy, I don't think it's crazy to say we'd wire it up all the way.
@nhooyr, I'll send it myself, as I already have the code. It won't save me any time to hand it to you to hand back to me. You can review it once it's on Gerrit, though.
I decided to implement this a different way, not using my existing code. Instead, I sent https://golang.org/cl/131279 to add Transport support for WebSockets, so the ReverseProxy code won't need to separately dial the backend.
Activity
nhooyr commentedon Aug 12, 2018
This would need to be off by default in case current clients rely on the lack of support to prevent websocket connections.
bradfitz commentedon Aug 12, 2018
@nhooyr, that seems like a stretch. We'd document it in the release notes and say how to disable it if people wanted to. But if the two sides negotiate it and the Go user expressed their intent to wire up the two sides with a ReverseProxy, I don't think it's crazy to say we'd wire it up all the way.
nhooyr commentedon Aug 12, 2018
@bradfitz Fair enough. Its extremely unlikely anyone would not want WebSockets support anyway.
nhooyr commentedon Aug 12, 2018
@bradfitz Could you post the code for this, I've written something similar myself, want to make sure I'm doing it right.
nhooyr commentedon Aug 12, 2018
We should also support arbitrary upgrades instead of just WebSockets.
nhooyr commentedon Aug 12, 2018
@bradfitz In fact, if you post it, I'd love to work on the CL for this.
bradfitz commentedon Aug 12, 2018
@nhooyr, I'll send it myself, as I already have the code. It won't save me any time to hand it to you to hand back to me. You can review it once it's on Gerrit, though.
gopherbot commentedon Aug 24, 2018
Change https://golang.org/cl/131279 mentions this issue:
net/http: make Transport return Writable Response.Body on WebSocket upgrade
bradfitz commentedon Aug 24, 2018
I decided to implement this a different way, not using my existing code. Instead, I sent https://golang.org/cl/131279 to add Transport support for WebSockets, so the ReverseProxy code won't need to separately dial the backend.
net/http: make Transport return Writable Response.Body on protocol sw…
41 remaining items