From d3a86a8a3401515cbe1da9aa336682ef923e21db Mon Sep 17 00:00:00 2001 From: crusader Date: Wed, 29 Nov 2017 19:54:21 +0900 Subject: [PATCH] ing --- server/rwc/websocket/fasthttp/servlet_handlers.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/rwc/websocket/fasthttp/servlet_handlers.go b/server/rwc/websocket/fasthttp/servlet_handlers.go index c02417d..0459970 100644 --- a/server/rwc/websocket/fasthttp/servlet_handlers.go +++ b/server/rwc/websocket/fasthttp/servlet_handlers.go @@ -37,6 +37,10 @@ func (srwch *ServletReadWriteCloseHandlers) WriteResponse(servletCTX rpc.Servlet return wErr } + defer func() { + wc.Close() + }() + if nil != err { if wErr := requestCodec.WriteError(wc, 500, err); nil != wErr { return wErr