v2ray hace 9 años
padre
commit
9b511fb071
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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.Tick(time.Second):
+	case <-time.After(16 * time.Second):
 		return ErrorIOTimeout
 	}
 }