allow error on set deadline

pull/642/head^2
Darien Raymond 2017-05-30 17:33:41 +02:00
parent 799498fe60
commit 3d13bba412
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 3 additions and 1 deletions

View File

@ -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)