Updating oxy dependency
This commit is contained in:
parent
ba3a579d07
commit
967e4208da
2 changed files with 10 additions and 1 deletions
2
Gopkg.lock
generated
2
Gopkg.lock
generated
|
@ -1272,7 +1272,7 @@
|
||||||
"roundrobin",
|
"roundrobin",
|
||||||
"utils"
|
"utils"
|
||||||
]
|
]
|
||||||
revision = "a3ed5f65204f4ffccbb56d58cec466cdb7ab730b"
|
revision = "fb889e801a26e7e18ef36322ac72a07157f8cc1f"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
name = "github.com/vulcand/predicate"
|
name = "github.com/vulcand/predicate"
|
||||||
|
|
9
vendor/github.com/vulcand/oxy/forward/fwd.go
generated
vendored
9
vendor/github.com/vulcand/oxy/forward/fwd.go
generated
vendored
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue