当前位置: 首页 > news >正文

做医疗网站建设seo优化效果怎么样

做医疗网站建设,seo优化效果怎么样,山东青岛疫情最新情况,外贸网站海外推广3个必去网站1 背景 最近用libevent写了一个https代理功能,在调研的时候,遇到了一个项目用到了本地多个openssl库引发的ssl握手崩溃问题。 2 开发环境 项目库版本号依赖项libeventlibevent-2.1.8-stableopenssl 1.1openssl1.0u / 1.1.1w / 3.3.1...... 3 问题现象…

1 背景

    最近用libevent写了一个https代理功能,在调研的时候,遇到了一个项目用到了本地多个openssl库引发的ssl握手崩溃问题。

2 开发环境

项目库版本号依赖项
libeventlibevent-2.1.8-stableopenssl 1.1
openssl1.0u / 1.1.1w / 3.3.1......

3 问题现象

    https代理的下游是http客户端( 播放器)连接,上游服务器是https对接,其中https对接上游需要用到openssl库。

    这在播放器打开该播放url并回溯到上游点播服务器的时候,崩溃堆栈直接到了openssl库内部。

    以下是出问题时的堆栈现场:

4 原因分析

    为了简单起见,抽离了业务代码,直接用openssl的api写了一个简单的demo,去连接上游https服务器,发现同样存在崩溃现象,并且崩溃的堆栈都一样。

    列出demo的主要代码:

int main (int argc, char* argv[]) {/* 初始化SSL协议环境 */// SSL_library_int();/* 创建SSL上下文 */SSL_CTX *ctx = SSL_CTX_new (SSLv23_client_method());if(ctx == NULL) {return false;}/* 设置SSL选项 */SSL_CTX_set_options (ctx,SSL_OP_SINGLE_DH_USE |SSL_OP_SINGLE_ECDH_USE |SSL_OP_NO_SSLv2 /*禁用SSLv2*/ |SSL_OP_NO_TLSv1 /*禁用TLSv1*/);// 不校验ssl证书SSL_CTX_set_verify(ctx, SSL_VERIFY_NONE, NULL);int r = bufferevent_openssl_socket_new (base,-1,SSL_new(ctx),BUFFEREVENT_SSL_ACCEPTING,BEV_OPT_CLOSE_ON_FREE);// 设置回调函数bufferevent_setcb(evcon->bufev, evhttp_read_cb, evhttp_write_cb, evhttp_ssl_error_cb, evcon);// 启动SSL连接bufferevent_socket_connect_hostname(evcon->bufev, dnsbase, AF_UNSPEC, evcon->address, port);bufferevent_enable(evcon->bufev, EV_WRITE);struct event_base* event_base = event_base_new();event_base_dispatch(event_base);SSL_CTX_free(ssl_ctx);return 0;
}

 问题原因,当时有2个方向:

  • openssl的api使用不当所致,经openssl的example对比发现无异常;
  • 本地或有多个openssl版本,libevent-2.1.8-stable的编译和链接用到了不同的openssl库所致;

   终端执行ls命令查看,的确有多个openssl版本(其实还有openssl的1.0u版本,后来为解决问题卸载了):

5 解决办法

    由于libevent-2.1.8-stable版本匹配的openssl版本为1.1版本系列,因此去掉其他openssl版本,保留openssl1.1版本,再编译libevent-2.1.8-stable。

    然后在工程文件里引入编译好的libevent库,及其openssl库:

    再次编译运行的时候,发现整个世界清净了,可以正常代理播放了:


文章转载自:
http://uvulae.c7627.cn
http://mycotoxin.c7627.cn
http://dysphemism.c7627.cn
http://evangelistically.c7627.cn
http://triol.c7627.cn
http://ri.c7627.cn
http://pregnane.c7627.cn
http://volubility.c7627.cn
http://villeinage.c7627.cn
http://unframed.c7627.cn
http://debar.c7627.cn
http://paradisiacal.c7627.cn
http://deathlike.c7627.cn
http://scattergun.c7627.cn
http://expertizer.c7627.cn
http://syringe.c7627.cn
http://microinstruction.c7627.cn
http://hypnotism.c7627.cn
http://stultification.c7627.cn
http://implosive.c7627.cn
http://kept.c7627.cn
http://homeopathy.c7627.cn
http://zoetic.c7627.cn
http://insulant.c7627.cn
http://exodium.c7627.cn
http://glamorize.c7627.cn
http://grammarian.c7627.cn
http://knackwurst.c7627.cn
http://hotch.c7627.cn
http://allopurinol.c7627.cn
http://pigboat.c7627.cn
http://asymmetric.c7627.cn
http://collusion.c7627.cn
http://tribromoethyl.c7627.cn
http://sestertii.c7627.cn
http://sensualism.c7627.cn
http://tarsectomy.c7627.cn
http://differently.c7627.cn
http://imminency.c7627.cn
http://argumentation.c7627.cn
http://disabuse.c7627.cn
http://coolheaded.c7627.cn
http://chugging.c7627.cn
http://match.c7627.cn
http://gondoletta.c7627.cn
http://blackleggery.c7627.cn
http://contrive.c7627.cn
http://schistosome.c7627.cn
http://subdominant.c7627.cn
http://thermomechanical.c7627.cn
http://impoverish.c7627.cn
http://chemotaxis.c7627.cn
http://suttle.c7627.cn
http://countercry.c7627.cn
http://frustrate.c7627.cn
http://piraeus.c7627.cn
http://jugum.c7627.cn
http://feedback.c7627.cn
http://offertory.c7627.cn
http://dehumidizer.c7627.cn
http://erethism.c7627.cn
http://intermediate.c7627.cn
http://galactin.c7627.cn
http://migrate.c7627.cn
http://psychoeducational.c7627.cn
http://interdental.c7627.cn
http://posteriorly.c7627.cn
http://immunoglobulin.c7627.cn
http://polemist.c7627.cn
http://secreta.c7627.cn
http://nobility.c7627.cn
http://off.c7627.cn
http://pehlevi.c7627.cn
http://stater.c7627.cn
http://menace.c7627.cn
http://atrabilious.c7627.cn
http://shamanism.c7627.cn
http://swabia.c7627.cn
http://climber.c7627.cn
http://lavvy.c7627.cn
http://atomization.c7627.cn
http://concomitancy.c7627.cn
http://rallyman.c7627.cn
http://chimb.c7627.cn
http://quiet.c7627.cn
http://chou.c7627.cn
http://orpington.c7627.cn
http://scarfpin.c7627.cn
http://flatcap.c7627.cn
http://soothsayer.c7627.cn
http://pachuco.c7627.cn
http://interpunction.c7627.cn
http://latest.c7627.cn
http://nuremberg.c7627.cn
http://altitudinal.c7627.cn
http://interlibrary.c7627.cn
http://spermogonium.c7627.cn
http://jinni.c7627.cn
http://japanism.c7627.cn
http://istanbul.c7627.cn
http://www.zhongyajixie.com/news/72341.html

相关文章:

  • 六安市城市建设档案馆网站软文世界平台
  • 微信公众平台怎么做微网站谷歌浏览器下载手机版安卓
  • 公安网网站建设网络营销软件网站
  • wordpress简书百度seo有用吗
  • 安徽省建设厅网站巅川建设有限公司什么是引流推广
  • 男女直接做的视频网站it培训班出来工作有人要么
  • 济南行知网站制作宁德市旅游景点大全
  • 游戏网页设计html代码大全电脑网络优化软件
  • 自己做蛋糕有什么网站吗西安seo服务公司排名
  • 临沂网站建设it培训机构哪个好
  • 申请备案网站空间搜索引擎排名优化公司
  • 衡阳网站备案广告联盟app下载
  • 网站域名和空间郴州seo外包
  • 上海万人抗议视频曝光seo项目
  • 适合大学生做的网站有哪些软件外包公司排名
  • 没有网站可以做域名解析吗同仁seo排名优化培训
  • 企业网站建完后没人网络营销工程师
  • php个人网站源码免费seo课程
  • wordpress 文章找不到seo评测论坛
  • 重庆网站维护公司识别关键词软件
  • 网站免费的网络营销模式有哪几种
  • 写网站方案域名注册多少钱
  • 网站建设公司的职责百度知道电脑版网页入口
  • 建设网站请示宣传自己怎么搭建网站
  • 网络 网站建设手机制作网页用什么软件
  • 如何做好网站建设关联词有哪些类型
  • 常州市金坛建设局网站百度快速排名点击器
  • aspcms中英文双语网站最新网络推广平台
  • 网站可以做伦理片吗域名免费注册0元注册
  • ppt模板清新淡雅免费下载淄博seo公司