1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-04 00:05:21 -05:00

rename buf.Copy

This commit is contained in:
Darien Raymond
2017-04-17 22:50:02 +02:00
parent e362c74fa9
commit ab9349ec31
11 changed files with 29 additions and 30 deletions

View File

@@ -152,7 +152,7 @@ func (s *Server) handleConnect(ctx context.Context, request *http.Request, reade
defer ray.InboundInput().Close()
v2reader := buf.NewReader(reader)
if err := buf.PipeUntilEOF(timer, v2reader, ray.InboundInput()); err != nil {
if err := buf.Copy(timer, v2reader, ray.InboundInput()); err != nil {
return err
}
return nil
@@ -160,7 +160,7 @@ func (s *Server) handleConnect(ctx context.Context, request *http.Request, reade
responseDone := signal.ExecuteAsync(func() error {
v2writer := buf.NewWriter(writer)
if err := buf.PipeUntilEOF(timer, ray.InboundOutput(), v2writer); err != nil {
if err := buf.Copy(timer, ray.InboundOutput(), v2writer); err != nil {
return err
}
return nil