Re: "getaddrinfo() thread failed to start" under heavy load

2023-10-17 Thread m brandenberg via curl-library
On Tue, 17 Oct 2023, Dan Fandrich via curl-library wrote: Switching to c-ares for resolving won't fix the underlying issue but there's a good chance it will avoid it altogether. It's more resource efficient than the threaded resolver. Yes, the threaded resolver is... expensive. But I've also

Re: "getaddrinfo() thread failed to start" under heavy load

2023-10-17 Thread Matt Toschlog via curl-library
Yep, it was the limit on file descriptors.  Thanks! On 10/16/2023 18:24, Henrik Holst wrote: could be the limit of number of descriptors : https://linuxhint.com/increase-open-file-limit-ubuntu/ looked briefly at the code and unfortunately there are no error stack so there is really no way o

Re: "getaddrinfo() thread failed to start" under heavy load

2023-10-17 Thread Dan Fandrich via curl-library
On Tue, Oct 17, 2023 at 12:29:55PM +, m brandenberg via curl-library wrote: > On Mon, 16 Oct 2023, Matt Toschlog via curl-library wrote: > > I'm using libcurl in a voice server app running on Ubuntu 20.04 on an > > Amazon AWS EC2 instance.  When I get around 500 users on the system I > > start

Re: Default to CURLSSLOPT_NATIVE_CA for curl --without-ca-bundle ?

2023-10-17 Thread Jeroen Ooms via curl-library
On Tue, Oct 17, 2023 at 4:02 PM Daniel Stenberg wrote: > > On Tue, 17 Oct 2023, Jeroen Ooms via curl-library wrote: > > > Perhaps it makes sense to enable CURLSSLOPT_NATIVE_CA by default for curl > > builds --without-ca-bundle? At least on Windows I think that makes sense > > (and perhaps is even

Re: Default to CURLSSLOPT_NATIVE_CA for curl --without-ca-bundle ?

2023-10-17 Thread Daniel Stenberg via curl-library
On Tue, 17 Oct 2023, Jeroen Ooms via curl-library wrote: Perhaps it makes sense to enable CURLSSLOPT_NATIVE_CA by default for curl builds --without-ca-bundle? At least on Windows I think that makes sense (and perhaps is even what one would expect) when we build curl against openssl but without

Re: Websockets libcurl 8.3.0

2023-10-17 Thread Daniel Stenberg via curl-library
On Mon, 16 Oct 2023, john via curl-library wrote: I am unable to get 'curl_ws_send' to work. What does libcurl do for the 'curl_ws_send' request? Do I need other curl_easy_setopt before doing the 'curl_ws_send'? What should the buffer in the 'curl_ws_send' contain? WebSocket documentation ove

Re: "getaddrinfo() thread failed to start" under heavy load

2023-10-17 Thread m brandenberg via curl-library
On Mon, 16 Oct 2023, Matt Toschlog via curl-library wrote: I'm using libcurl in a voice server app running on Ubuntu 20.04 on an Amazon AWS EC2 instance.  When I get around 500 users on the system I start getting the error "getaddrinfo() thread failed to start" in my curl_easy_perform() calls.

Default to CURLSSLOPT_NATIVE_CA for curl --without-ca-bundle ?

2023-10-17 Thread Jeroen Ooms via curl-library
We build the R bindings on Windows with both schannel and openssl. But we don't ship any CA bundle, so the openssl back-end only works once we enable CURLSSLOPT_NATIVE_CA. Sometimes we need to debug something using the curl command line utility with the same settings. This is a bit tricky because