mirror of https://github.com/v2ray/v2ray-core
refine log message
parent
3112d3a2d3
commit
0f71305ee1
|
@ -119,8 +119,7 @@ func (s *Server) handleConnect(ctx context.Context, request *http.Request, reade
|
|||
Close: false,
|
||||
}
|
||||
if err := response.Write(writer); err != nil {
|
||||
log.Warning("HTTP|Server: failed to write back OK response: ", err)
|
||||
return err
|
||||
return errors.Base(err).Message("HTTP|Server: Failed to write back OK response.")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(ctx)
|
||||
|
@ -153,10 +152,9 @@ func (s *Server) handleConnect(ctx context.Context, request *http.Request, reade
|
|||
})
|
||||
|
||||
if err := signal.ErrorOrFinish2(ctx, requestDone, responseDone); err != nil {
|
||||
log.Info("HTTP|Server: Connection ends with: ", err)
|
||||
ray.InboundInput().CloseError()
|
||||
ray.InboundOutput().CloseError()
|
||||
return err
|
||||
return errors.Base(err).Message("HTTP|Server: Connection ends.")
|
||||
}
|
||||
|
||||
runtime.KeepAlive(timer)
|
||||
|
@ -253,10 +251,9 @@ func (s *Server) handlePlainHTTP(ctx context.Context, request *http.Request, rea
|
|||
})
|
||||
|
||||
if err := signal.ErrorOrFinish2(ctx, requestDone, responseDone); err != nil {
|
||||
log.Info("HTTP|Server: Connecton ending with ", err)
|
||||
input.CloseError()
|
||||
output.CloseError()
|
||||
return err
|
||||
return errors.Base(err).Message("HTTP|Server: Connection ends.")
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue