| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
namespace Symfony\Component\HttpClient\Internal; |
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
final class NativeClientState extends ClientState |
| 22 |
{ |
| 23 |
public int $id; |
| 24 |
public int $maxHostConnections = \PHP_INT_MAX; |
| 25 |
public int $responseCount = 0; |
| 26 |
|
| 27 |
public array $dnsCache = []; |
| 28 |
public bool $sleep = false; |
| 29 |
|
| 30 |
public array $hosts = []; |
| 31 |
|
| 32 |
public function __construct() |
| 33 |
{ |
| 34 |
$this->id = random_int(\PHP_INT_MIN, \PHP_INT_MAX); |
| 35 |
} |
| 36 |
|
| 37 |
public function reset(): void |
| 38 |
{ |
| 39 |
$this->responseCount = 0; |
| 40 |
$this->dnsCache = []; |
| 41 |
$this->hosts = []; |
| 42 |
} |
| 43 |
} |