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