| 1 | <?php |
||
| 18 | class PersistentClientSocket extends AbstractClientSocket |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * Key in php persistent storage to allow multiple persistent connections to the same host |
||
| 22 | * |
||
| 23 | * @var null|string |
||
| 24 | */ |
||
| 25 | private $persistentKey; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * PersistentClientSocket constructor. |
||
| 29 | * |
||
| 30 | * @param string|null $persistentKey Key in php persistent storage to allow multiple persistent |
||
| 31 | * connections to the same host [a-zA-Z0-9_-] |
||
| 32 | */ |
||
| 33 | 18 | public function __construct($persistentKey = null) |
|
| 38 | |||
| 39 | /** {@inheritdoc} */ |
||
| 40 | 13 | protected function createSocketResource($address, $context) |
|
| 57 | } |
||
| 58 |