replace xnet.Transport by xnet.Pipe
This commit is contained in:
@@ -315,7 +315,8 @@ func (h *http2Handler) roundTrip(ctx context.Context, w http.ResponseWriter, req
|
||||
|
||||
start := time.Now()
|
||||
log.Infof("%s <-> %s", req.RemoteAddr, host)
|
||||
xnet.Transport(rw, cc)
|
||||
// xnet.Transport(rw, cc)
|
||||
xnet.Pipe(ctx, rw, cc)
|
||||
log.WithFields(map[string]any{
|
||||
"duration": time.Since(start),
|
||||
}).Infof("%s >-< %s", req.RemoteAddr, host)
|
||||
|
||||
Reference in New Issue
Block a user