Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/v1ray/v2ray-core
Browse files Browse the repository at this point in the history
  • Loading branch information
DarienRaymond committed May 30, 2017
2 parents cb33232 + 3d13bba commit a703c30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion proxy/vmess/inbound/inbound.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ func transferResponse(timer signal.ActivityTimer, session *encoding.ServerSessio

// Process implements proxy.Inbound.Process().
func (v *Handler) Process(ctx context.Context, network net.Network, connection internet.Connection, dispatcher dispatcher.Interface) error {
common.Must(connection.SetReadDeadline(time.Now().Add(time.Second * 8)))
if err := connection.SetReadDeadline(time.Now().Add(time.Second * 8)); err != nil {
return err
}

reader := buf.NewBufferedReader(connection)

Expand Down

0 comments on commit a703c30

Please sign in to comment.