1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-02-20 23:47:21 -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 ( import (
"context" "context"
"io" "io"
"sync"
"runtime" "runtime"
"sync"
"time" "time"
"v2ray.com/core/app" "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 { if err := signal.ErrorOrFinish2(ctx, requestDone, responseDone); err != nil {
log.Info("VMess|Inbound: Connection ending with ", err)
connection.SetReusable(false) connection.SetReusable(false)
input.CloseError() input.CloseError()
output.CloseError() output.CloseError()
return err return errors.Base(err).Message("VMess|Inbound: Error during processing.")
} }
if err := writer.Flush(); err != nil { if err := writer.Flush(); err != nil {
log.Info("VMess|Inbound: Failed to flush remain data: ", err)
connection.SetReusable(false) connection.SetReusable(false)
return err return errors.Base(err).Message("VMess|Inbound: Error during flushing remaining data.")
} }
runtime.KeepAlive(timer) runtime.KeepAlive(timer)
@ -257,7 +254,7 @@ func (v *VMessInboundHandler) generateCommand(ctx context.Context, request *prot
availableMin = 255 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) user := inboundHandler.GetUser(request.User.Email)
if user == nil { if user == nil {
return nil return nil