Re: Concurrency and send/recv

2021-03-13 Thread Daniel Stenberg via curl-library
On Sat, 13 Mar 2021, Ray Satiro via curl-library wrote: curl handles can't be used from multiple threads at the same time [1] and because of that I'm pretty sure it's not possible. Note cached connections can be shared between threads (but there is a concurrency bug in that). Daniel will have

Re: Concurrency and send/recv

2021-03-12 Thread Ray Satiro via curl-library
On 3/12/2021 11:45 PM, Jacob Hoffman-Andrews via curl-library wrote: Currently the rustls backend uses a buffer on the stack for its `send` / `recv` implementations. I'd like to switch this to be a heap-allocated buffer, initialized once and stored in the `connssl->backend` struct. Is it guaran

Concurrency and send/recv

2021-03-12 Thread Jacob Hoffman-Andrews via curl-library
Currently the rustls backend uses a buffer on the stack for its `send` / `recv` implementations. I'd like to switch this to be a heap-allocated buffer, initialized once and stored in the `connssl->backend` struct. Is it guaranteed that `send` and `recv` are never called concurrently? In general wha