From 224ffedb07e165c99e52045fb28614319a9e93e2 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 27 Jun 2016 22:52:14 +0200 Subject: add debug message when done has been sent diff --git a/src/rhimportd/ctrlWebSocket.go b/src/rhimportd/ctrlWebSocket.go index 892cf3a..a22c134 100644 --- a/src/rhimportd/ctrlWebSocket.go +++ b/src/rhimportd/ctrlWebSocket.go @@ -314,6 +314,7 @@ func webSocketSessionHandler(reqchan <-chan webSocketRequestData, binchan <-chan sendWebSocketProgressResponse(ws, session.id, session.refId, p.Step, p.StepName, p.Current, p.Total) case d := <-session.donechan: sendWebSocketDoneResponse(ws, d.ResponseCode, d.ErrorString, session.id, session.refId, d.Cart, d.Cut) + rhdl.Println("WebSocket Client", ws.RemoteAddr(), "done sent: sending close message.") ws.WriteControl(websocket.CloseMessage, []byte{}, time.Now().Add(time.Minute)) } } -- cgit v0.10.2