问题代码
// 批量请求接口
$responseList = SaberGM::list([
// 深度接口地址
'uri' => $urlList,
// 代理列表
'proxy' => $proxyList,
]);
php swoole 版本 4.6.4
swoole
Swoole => enabled
Author => Swoole Team <team@swoole.com>
Version => 4.6.4
Built => Mar 11 2021 14:42:19
coroutine => enabled with boost asm context
trace_log => enabled
epoll => enabled
eventfd => enabled
signalfd => enabled
cpu_affinity => enabled
spinlock => enabled
rwlock => enabled
sockets => enabled
openssl => OpenSSL 1.0.2k-fips 26 Jan 2017
http2 => enabled
json => enabled
curl-native => enabled
pcre => enabled
zlib => 1.2.7
mutex_timedlock => enabled
pthread_barrier => enabled
futex => enabled
mysqlnd => enabled
async_redis => enabled
Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.enable_library => On => On
swoole.enable_preemptive_scheduler => Off => Off
swoole.display_errors => On => On
swoole.use_shortname => On => On
swoole.unixsock_buffer_size => 8388608 => 8388608
[FATAL ERROR]: all coroutines (count: 1) are asleep - deadlock!
Fatal error: Uncaught Swlib\Http\Exception\ConnectException: HTTP -1 Unknown: Connect timeout! the server is not listening on the port or the network is missing! in
/vendor/swlib/saber/src/Request.php:641
诶 查了很多文档, 最后还是选择 不使用代理 注释代理代码 问题就解决了. 但也不是个办法 希望后面会有时间解决下问题吧.