This commit is contained in:
crusader 2017-11-29 19:54:21 +09:00
parent 911e6ec1d7
commit d3a86a8a34

View File

@ -37,6 +37,10 @@ func (srwch *ServletReadWriteCloseHandlers) WriteResponse(servletCTX rpc.Servlet
return wErr return wErr
} }
defer func() {
wc.Close()
}()
if nil != err { if nil != err {
if wErr := requestCodec.WriteError(wc, 500, err); nil != wErr { if wErr := requestCodec.WriteError(wc, 500, err); nil != wErr {
return wErr return wErr