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.
Re: conn.data considered bad
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Wed, 13 Jan 2021 09:37:34 +0100 (CET)
On Fri, 8 Jan 2021, Daniel Stenberg via curl-library wrote:
> https://github.com/curl/curl/wiki/conn.data-considered-bad
Step one for this journey is in PR 6425 [1].
It converts *a lot* of internal APIs to use 'struct Curl_easy *' instead of or
in addition to 'struct connectdata *'.
I'm going to make sure the PR goes green in the CI tests (minus the flaky
tests), then clean up/squash the commits sensibly and then land it - maybe
within a few days. This PR currently reduces the amount of 'conn->data' use in
the code to less than half than before (from 919 to 392).
Working on this PR I get a really good feel for this new world order. I think
it will help us keep better track of tranfers vs connections in the code. More
controlled.
I think the remaining references can be done as smaller PRs.
[1] = https://github.com/curl/curl/pull/6425
Date: Wed, 13 Jan 2021 09:37:34 +0100 (CET)
On Fri, 8 Jan 2021, Daniel Stenberg via curl-library wrote:
> https://github.com/curl/curl/wiki/conn.data-considered-bad
Step one for this journey is in PR 6425 [1].
It converts *a lot* of internal APIs to use 'struct Curl_easy *' instead of or
in addition to 'struct connectdata *'.
I'm going to make sure the PR goes green in the CI tests (minus the flaky
tests), then clean up/squash the commits sensibly and then land it - maybe
within a few days. This PR currently reduces the amount of 'conn->data' use in
the code to less than half than before (from 919 to 392).
Working on this PR I get a really good feel for this new world order. I think
it will help us keep better track of tranfers vs connections in the code. More
controlled.
I think the remaining references can be done as smaller PRs.
[1] = https://github.com/curl/curl/pull/6425
-- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new features | https://www.wolfssl.com/contact/ ------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2021-01-13