Skip to content

Commit 8449136

Browse files
committed
websocketproxy: add some note
1 parent 84485d2 commit 8449136

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

websocketproxy.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ func (w *WebsocketProxy) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
100100
}
101101

102102
// Connect to the backend url, also pass the headers we prepared above.
103+
// TODO: support multiplexing on the same backend connection instead of
104+
// opening a new TCP connection time for each request.
103105
connBackend, resp, err := dialer.Dial(backendURL.String(), h)
104106
if err != nil {
105107
log.Printf("websocketproxy: couldn't dial to remote backend url %s\n", err)

0 commit comments

Comments
 (0)