Skip to content

Commit

Permalink
Merge branch '6.3' into 6.4
Browse files Browse the repository at this point in the history
* 6.3:
  always pass microseconds to usleep as integers
  Bump Symfony version to 6.3.11
  Update VERSION for 6.3.10
  Update CHANGELOG for 6.3.10
  Bump Symfony version to 5.4.34
  Update VERSION for 5.4.33
  Update CONTRIBUTORS for 5.4.33
  Update CHANGELOG for 5.4.33
  • Loading branch information
derrabus committed Dec 2, 2023
2 parents 5c58453 + 2f44f1d commit fc09446
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Response/AsyncContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function pause(float $duration): void
if (\is_callable($pause = $this->response->getInfo('pause_handler'))) {
$pause($duration);
} elseif (0 < $duration) {
usleep(1E6 * $duration);
usleep((int) (1E6 * $duration));
}
}

Expand Down
2 changes: 1 addition & 1 deletion Response/TransportResponseTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ public static function stream(iterable $responses, float $timeout = null): \Gene
}

if (-1 === self::select($multi, min($timeoutMin, $timeoutMax - $elapsedTimeout))) {
usleep(min(500, 1E6 * $timeoutMin));
usleep((int) min(500, 1E6 * $timeoutMin));
}

$elapsedTimeout = hrtime(true) / 1E9 - $lastActivity;
Expand Down

0 comments on commit fc09446

Please sign in to comment.