curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Concurrency and send/recv

From: Jacob Hoffman-Andrews via curl-library <>
Date: Fri, 12 Mar 2021 20:45:10 -0800

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
what are the concurrency properties that apply to TLS backends?

Received on 2021-03-13