Coder Social home page Coder Social logo

[BUG]线程安全问题 about curl_cffi HOT 3 CLOSED

520Error avatar 520Error commented on June 1, 2024
[BUG]线程安全问题

from curl_cffi.

Comments (3)

yifeikong avatar yifeikong commented on June 1, 2024

This function is thread-safe since libcurl 7.84.0

我们用的最低版本恰好是 7.84,所以 curl_global_init 应该没问题。

Session 中默认使用的是 thread_local 的 curl handle,应该也不会导致死锁吧。

NOSIGNAL 似乎是用来解决 DNS 问题的,你上边提到的错误跟这个无关。

如果有能稳定复现这些问题的代码,还请贴上来。

from curl_cffi.

yifeikong avatar yifeikong commented on June 1, 2024

TLSV1_ALERT_INTERNAL_ERROR 这个错误可能跟你的目标站点的 TLS 配置有关,你可以试下更换不同的 impersonate 参数,看看哪个是有问题的。

也有文章指出,跟国内的互联网环境可能有关。

from curl_cffi.

Nongzhsh avatar Nongzhsh commented on June 1, 2024

TLSV1_ALERT_INTERNAL_ERROR 这个错误可能跟你的目标站点的 TLS 配置有关,你可以试下更换不同的 impersonate 参数,看看哪个是有问题的。

也有文章指出,跟国内的互联网环境可能有关。

感觉大概率是网络问题,有时候本机开启Clash客户端也会影响。

from curl_cffi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.