lib: client reader polish

- seek_func/seek_client, use transfer values only
    - remove copies held in `struct connectdata`, use only
      ever `data->set.seek_func`
    - resolves possible issues in multiuse connections
    - new mime post reader eliminates need to ever overwriting this

- websockets, remove empty Curl_ws_done() function

Closes #13079
This commit is contained in:
Stefan Eissing 2024-03-07 11:05:53 +01:00 committed by Daniel Stenberg
parent 800617fac8
commit a586b8ca40
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
10 changed files with 14 additions and 36 deletions

View file

@ -724,9 +724,9 @@ static CURLcode cr_in_resume_from(struct Curl_easy *data,
if(ctx->read_len)
return CURLE_READ_ERROR;
if(data->conn->seek_func) {
if(data->set.seek_func) {
Curl_set_in_callback(data, true);
seekerr = data->conn->seek_func(data->conn->seek_client, offset, SEEK_SET);
seekerr = data->set.seek_func(data->set.seek_client, offset, SEEK_SET);
Curl_set_in_callback(data, false);
}