問題描述
我使用Workerman\Http\Client來對外請求(并開啟了協(xié)程),我發(fā)現(xiàn)在請求個別網(wǎng)站時會提示has been closed,我在本站和google上搜索與此有關(guān)的問題,有些人說ssl問題,于是我Workerman\Http\ConnectionPool的create中記錄是否關(guān)閉ssl,事實上已關(guān)閉,我嘗試寫一個普通的curl來請求,卻可以拿到數(shù)據(jù),請問是什么回事呢
####[
'method' => 'get',
'version' => '1.1',
];
$testnet=$http->request('【域名】',$option);
```
#### ssl關(guān)閉
```
#ConnectionPool 的create
protected function create($address, bool $ssl = false, string $proxy =$ssl) {
unset($context['ssl']);
}
if (empty($proxy)) {
unset(