程序员最近都爱上了这个网站  程序员们快来瞅瞅吧!  it98k网:it98k.com

本站消息

站长简介/公众号

  出租广告位,需要合作请联系站长

+关注
已关注

分类  

暂无分类

标签  

暂无标签

日期归档  

暂无数据

PHP CURL rarely SSL connect error

发布于2023-01-19 16:56     阅读(1069)     评论(0)     点赞(18)     收藏(5)


We have an instance of a nginx web server, that some of our applications use. And last time we started getting cURL error #35 - SSL connect error. But we don't get it continuously just about 2-3 times per 100 requests. Requests go from different sources (C# app, Unix-app, some php scripts etc.) And I'm confused because we can't find a reason of this problem.

curl_setopt($ch, CURLOPT_SSLVERSION, 3); makes a falirue at all.

What could it be?


解决方案


From the libcurl website, it states:

CURLE_SSL_CONNECT_ERROR (35)

A problem occurred somewhere in the SSL/TLS handshake. You really want the error buffer and read the message there as it pinpoints the problem slightly more. Could be certificates (file formats, paths, permissions), passwords, and others

Certainly with the PHP scripts it should be possible to edit them so that there is some extra debug information available to help debug ( could write to a text file etc ) - if the error persists and there is no info in the debug info then at least you have eliminated one source. I don't know how you would do the same for the unix app or the c# app - there most likely would be a way.



所属网站分类: 技术文章 > 问答

作者:黑洞官方问答小能手

链接:http://www.phpheidong.com/blog/article/476838/0043bd106bbd7b00fa2d/

来源:php黑洞网

任何形式的转载都请注明出处,如有侵权 一经发现 必将追究其法律责任

18 0
收藏该文
已收藏

评论内容:(最多支持255个字符)