首页
文档
问答
捐赠
源代码
商业产品
Swoole Tracker
Swoole Plus
Swoole Compiler
Swoole 微课程
商业合作
登录
注册
EN
全部
提问
分享
讨论
建议
公告
开发框架
发表新帖
使用HTTP2客户端做apns推送的时候,建立连接的时候报错 Operation not permitted,在root权限下也同样这个错误
marryML
上月
### 使用HTTP2客户端做apns推送的时候,建立连接的时候报错 Operation not permitted,在root权限下也同样这个错误 ### Swoole版本4.4.2,PHP版本7.2.24,操作系统版本ubuntu16 ### 相关代码 ```php go(function () { $this->cli = new \Swoole\Coroutine\Http2\Client($this->_appleServiceUrl, 443, true); $this->cli->set([ 'timeout' => -1, 'ssl_host_name' => $this->_appleServiceUrl ]); if (!$this->cli->connect()) { $this->log(LOG_ERR, json_encode("connect failed. Error: ".socket_strerror($this->cli->errCode))); $this->disconnect(); } else { $this->ping(); $this->startSend(); } }); ``` ### 结果 通过errCode获取的错误码为:1 linux错误码解释为: Operation not permitted
评论
还没有评论!