Browse Source

reduce time of waiting for channel empty

v2ray 9 năm trước cách đây
mục cha
commit
1bd893501c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      transport/ray/direct.go

+ 1 - 1
transport/ray/direct.go

@@ -97,7 +97,7 @@ func (this *Stream) TryWriteOnce(data *alloc.Buffer) error {
 	select {
 	case this.buffer <- data:
 		return nil
-	case <-time.After(16 * time.Second):
+	case <-time.After(2 * time.Second):
 		return ErrorIOTimeout
 	}
 }