| @@ 614-625 (lines=12) @@ | ||
| 611 | return false; |
|
| 612 | } |
|
| 613 | $this->statRefresh( |
|
| 614 | function ($file, $stat) use ($cb, $pri) { |
|
| 615 | if (!$stat) { |
|
| 616 | if ($cb) { |
|
| 617 | $cb($file, false); |
|
| 618 | } |
|
| 619 | return; |
|
| 620 | } |
|
| 621 | ||
| 622 | $offset = 0; |
|
| 623 | $buf = ''; |
|
| 624 | $size = $stat['size']; |
|
| 625 | ||
| 626 | eio_read( |
|
| 627 | $file->fd, |
|
| 628 | min($file->chunkSize, $size), |
|
| @@ 690-698 (lines=9) @@ | ||
| 687 | return false; |
|
| 688 | } |
|
| 689 | return $this->statRefresh( |
|
| 690 | function ($file, $stat) use ($cb, $chunkcb, $pri) { |
|
| 691 | if (!$stat) { |
|
| 692 | $cb($file, false); |
|
| 693 | return; |
|
| 694 | } |
|
| 695 | ||
| 696 | $offset = 0; |
|
| 697 | $size = $stat['size']; |
|
| 698 | ||
| 699 | eio_read( |
|
| 700 | $file->fd, |
|
| 701 | min($file->chunkSize, $size), |
|