Add write deadline for websocket connection to avoid long hang
* Setup deadline for websocket
modified:   src/code.cloudfoundry.org/loggregator/trafficcontroller/internal/proxy/websocket_handler.go
* setup write timeout for websocket connection to avoid hanging there for a long time
@@ -77,6 +77,7 @@ func (h *websocketHandler) runWebsocketUntilClosed(ws *websocket.Conn) (closeCod
if !ok {
return
}
+ ws.SetWriteDeadline(time.Now().Add(6 * time.Second))
err := ws.WriteMessage(websocket.BinaryMessage, message)
if err != nil {
return
