首页
下载
文档
社区
视频
捐赠
源代码
赞助商
AOT 编译器
AI 助理
商业产品
PHP AOT 原生编译器
Swoole-Compiler 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
使用HTTP2客户端做apns推送的时候,建立连接的时候报错 Operation not permitted,在root权限下也同样这个错误
### 使用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
发布于5年前 · 4 次浏览 · 来自
提问
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
赞
0
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
登录
后参与评论
评论
还没有评论!