alexmango
alexmango
编译环境: Ubuntu 12.04 Server LTS gcc 4.6.3 openssl 1.0.2j swoole 1.9.5 php 5.4.15 1. 先编译 openssl: cd /data/build/ wget wget -c --content-disposition https://www.openssl.org/source/openssl-1.0.2k.tar.gz tar xzvf openssl-1.0.2k.tar.gz cd openssl-1.0.2k/; ./config --prefix=/data/services/openssl-1.0.2k...
服务端开启ssl,运行一段时间以后php就会core dump(一般一天内最少发生一次)。 Swoole版本:1.9.6 php版本:5.4.15 openssl版本:1.0.2k gdb堆栈信息如下: #0 freelist_extract (for_read=, sz=34120, ctx=) at s3_both.c:619 #1 0x00007fcda5b904fc in ssl3_setup_read_buffer (s=0x311e820) at s3_both.c:682 #2 0x00007fcda5b90679 in ssl3_setup_buffers (s=0x311e820) at s3_both.c:735 #3 0x00007fcda5b92055 in...
运行环境是这样的: 前端 nginx 反向代理到 swoole,nginx 与 swoole 之间保持长连接。 业务代码简化如下: ```php //接收到 http 请求时的回调 $httpServer->on('request', function ($request, $response)use($httpServer) { //异步发送到其他服务器 MyClient::sendAsync('{data:"6364132221823510359"}', function($jsonStr)use($request, $response,$httpServer) { $info=$httpServer->connection_info($response->fd); if($info) { $response->write($jsonStr) $response->end(); } });...