1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-10-08 10:04:03 -04: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

@@ -76,7 +76,7 @@ func (d *DokodemoDoor) Process(ctx context.Context, network net.Network, conn in
chunkReader := buf.NewReader(conn)
if err := buf.PipeUntilEOF(timer, chunkReader, inboundRay.InboundInput()); err != nil {
if err := buf.Copy(timer, chunkReader, inboundRay.InboundInput()); err != nil {
return newError("failed to transport request").Base(err)
}
@@ -86,7 +86,7 @@ func (d *DokodemoDoor) Process(ctx context.Context, network net.Network, conn in
responseDone := signal.ExecuteAsync(func() error {
v2writer := buf.NewWriter(conn)
if err := buf.PipeUntilEOF(timer, inboundRay.InboundOutput(), v2writer); err != nil {
if err := buf.Copy(timer, inboundRay.InboundOutput(), v2writer); err != nil {
return newError("failed to transport response").Base(err)
}
return nil