Updating oxy dependency

This commit is contained in:
Rasmus Holm 2018-07-31 10:28:02 +02:00 committed by Traefiker Bot
parent ba3a579d07
commit 967e4208da
2 changed files with 10 additions and 1 deletions

2
Gopkg.lock generated
View file

@ -1272,7 +1272,7 @@
"roundrobin", "roundrobin",
"utils" "utils"
] ]
revision = "a3ed5f65204f4ffccbb56d58cec466cdb7ab730b" revision = "fb889e801a26e7e18ef36322ac72a07157f8cc1f"
[[projects]] [[projects]]
name = "github.com/vulcand/predicate" name = "github.com/vulcand/predicate"

View file

@ -395,6 +395,15 @@ func (f *httpForwarder) serveWebSocket(w http.ResponseWriter, req *http.Request,
errClient := make(chan error, 1) errClient := make(chan error, 1)
errBackend := make(chan error, 1) errBackend := make(chan error, 1)
replicateWebsocketConn := func(dst, src *websocket.Conn, errc chan error) { replicateWebsocketConn := func(dst, src *websocket.Conn, errc chan error) {
src.SetPingHandler(func(data string) error {
return dst.WriteMessage(websocket.PingMessage, []byte(data))
})
src.SetPongHandler(func(data string) error {
return dst.WriteMessage(websocket.PongMessage, []byte(data))
})
for { for {
msgType, msg, err := src.ReadMessage() msgType, msg, err := src.ReadMessage()