lexiforest / curl_cffi

Python binding for curl-impersonate via cffi. A http client that can impersonate browser tls/ja3/http2 fingerprints.
https://curl-cffi.readthedocs.io/
MIT License
1.91k stars 237 forks source link

[BUG] BoringSSL: error:10000438 when making several requests asynchronously in threads to the same site #352

Open viskok-yuri opened 1 month ago

viskok-yuri commented 1 month ago
**### https://12.171.100.186:4443/remote/login |Failed to perform, curl: (35) BoringSSL: error:10000438:SSL routines:OPENSSL_internal:TLSV1_ALERT_INTERNAL_ERROR. See https://curl.se/libcurl/c/libcurl-errors.html first for more details.
https://12.171.100.186:4443/remote/login |Failed to perform, curl: (35) BoringSSL: error:10000438:SSL routines:OPENSSL_internal:TLSV1_ALERT_INTERNAL_ERROR. See https://curl.se/libcurl/c/libcurl-errors.html first for more details.**

`

options = {
    CurlOpt.SSL_VERIFYHOST: 0,
    CurlOpt.SSL_VERIFYPEER: 0,
    CurlOpt.TLS_KEY_USAGE_NO_CHECK: 1
}
async with AsyncSession(impersonate=BrowserType.chrome, curl_options=options,
                        timeout=300, verify=False,
                        # proxy="http://127.0.0.1:8080",
                        ) as session:
    res = await session.get(link)
    **it comes out when I make several requests asynchronously in threads to the same site
    For example if aiohttp use force_close = True in the connector, it helps. What should I do here?**
perklet commented 1 month ago

See my comments on #319.