1
0
mirror of https://github.com/containous/traefik.git synced 2024-12-22 13:34:03 +03:00

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",
"utils"
]
revision = "a3ed5f65204f4ffccbb56d58cec466cdb7ab730b"
revision = "fb889e801a26e7e18ef36322ac72a07157f8cc1f"
[[projects]]
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)
errBackend := make(chan error, 1)
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 {
msgType, msg, err := src.ReadMessage()