Yurunsoft / Guzzle-Swoole

让基于 Guzzle 的项目完美无缝兼容 Swoole 协程,支持:Guzzle、Elasticsearch client——来自宇润 PHP 全家桶
MIT License
161 stars 21 forks source link

https 请求报错 #14

Closed Seeley-wang closed 4 years ago

Seeley-wang commented 4 years ago

image imageimi中使用,Main里面设置了处理器了,请求https就会报错 image http没问题

Yurunsoft commented 4 years ago

我这边测试没有问题,你看下 SwooleHandler 是不是:\Yurun\Util\Swoole\Guzzle\SwooleHandler

Seeley-wang commented 4 years ago

image image image

Yurunsoft commented 4 years ago

Swoole 版本多少?

Seeley-wang commented 4 years ago

image

Yurunsoft commented 4 years ago

用 strace 工具跟踪一下 worker 进程吧,使用方法:http://wiki.swoole.com/wiki/page/202.html

日志贴一下

Seeley-wang commented 4 years ago

这个要等好久么~ mac 上面没看到有输出到文件的

Yurunsoft commented 4 years ago

strace 跟踪 worker 进程后,访问接口,进程崩了就可以看日志了

Seeley-wang commented 4 years ago

image

是这个东西吗?我看到这两个总会出现,其他就和上面一句一样一直在扫描

Yurunsoft commented 4 years ago

只需要访问接口,然后worker进程崩溃后,就可以ctrl+c停止,然后提供一下日志,我给swoole开发组大佬看看是什么情况

Seeley-wang commented 4 years ago

image image image 我找到一个这个

Yurunsoft commented 4 years ago

@twose 大佬麻烦看下

twose commented 4 years ago

什么系统 是MacOS么 不是的话用valgrind看一下 openssl 库是怎么装的? 是否有问题?

twose commented 4 years ago

SIGBUS一般是内存没对齐吧 是几位的操作系统 openssl库是不是不匹配或者损坏的?

Seeley-wang commented 4 years ago

mac 系统 就用的内置的 image

twose commented 4 years ago

brew装的吧 重新装一下openssl库 从头编译swoole

Seeley-wang commented 4 years ago

image

Seeley-wang commented 4 years ago

好的 我试试