1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 17:46:58 -05:00

update comments

This commit is contained in:
Darien Raymond 2017-02-13 13:10:43 +01:00
parent 02028bf8be
commit 4c661bee47
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -3,9 +3,8 @@ package inbound
import (
"context"
"io"
"sync"
"runtime"
"sync"
"time"
"v2ray.com/core/app"
@ -223,17 +222,15 @@ func (v *VMessInboundHandler) Process(ctx context.Context, network net.Network,
})
if err := signal.ErrorOrFinish2(ctx, requestDone, responseDone); err != nil {
log.Info("VMess|Inbound: Connection ending with ", err)
connection.SetReusable(false)
input.CloseError()
output.CloseError()
return err
return errors.Base(err).Message("VMess|Inbound: Error during processing.")
}
if err := writer.Flush(); err != nil {
log.Info("VMess|Inbound: Failed to flush remain data: ", err)
connection.SetReusable(false)
return err
return errors.Base(err).Message("VMess|Inbound: Error during flushing remaining data.")
}
runtime.KeepAlive(timer)
@ -257,7 +254,7 @@ func (v *VMessInboundHandler) generateCommand(ctx context.Context, request *prot
availableMin = 255
}
log.Info("VMessIn: Pick detour handler for port ", port, " for ", availableMin, " minutes.")
log.Info("VMess|Inbound: Pick detour handler for port ", port, " for ", availableMin, " minutes.")
user := inboundHandler.GetUser(request.User.Email)
if user == nil {
return nil