Fix goroutine leaks in websocket
This commit is contained in:
parent
7b19cb5631
commit
f07e8f58e6
2 changed files with 3 additions and 3 deletions
2
Gopkg.lock
generated
2
Gopkg.lock
generated
|
@ -1028,7 +1028,7 @@
|
||||||
"roundrobin",
|
"roundrobin",
|
||||||
"utils"
|
"utils"
|
||||||
]
|
]
|
||||||
revision = "7e69a72707cbd367525e3c626be40c4a39454bb2"
|
revision = "af377749f48ff0ae9974b30ce12a816738b94558"
|
||||||
source = "https://github.com/containous/oxy.git"
|
source = "https://github.com/containous/oxy.git"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
|
|
4
vendor/github.com/vulcand/oxy/forward/fwd.go
generated
vendored
4
vendor/github.com/vulcand/oxy/forward/fwd.go
generated
vendored
|
@ -334,8 +334,8 @@ func (f *httpForwarder) serveWebSocket(w http.ResponseWriter, req *http.Request,
|
||||||
defer underlyingConn.Close()
|
defer underlyingConn.Close()
|
||||||
defer targetConn.Close()
|
defer targetConn.Close()
|
||||||
|
|
||||||
errClient := make(chan error)
|
errClient := make(chan error, 1)
|
||||||
errBackend := make(chan error)
|
errBackend := make(chan error, 1)
|
||||||
replicateWebsocketConn := func(dst, src *websocket.Conn, errc chan error) {
|
replicateWebsocketConn := func(dst, src *websocket.Conn, errc chan error) {
|
||||||
for {
|
for {
|
||||||
msgType, msg, err := src.ReadMessage()
|
msgType, msg, err := src.ReadMessage()
|
||||||
|
|
Loading…
Reference in a new issue