mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:31:41 +03:00
lib: xfer_setup simplify
Make variants for transfers that send/receive or do both with just the parameters they need. Split out the shutdown setting into a separate function. Only FTP bothers with that. Closes #18203
This commit is contained in:
parent
034612cd51
commit
6cebd35b4c
15 changed files with 104 additions and 109 deletions
|
|
@ -370,7 +370,7 @@ static CURLcode rtsp_do(struct Curl_easy *data, bool *done)
|
|||
}
|
||||
|
||||
if(rtspreq == RTSPREQ_RECEIVE) {
|
||||
Curl_xfer_setup1(data, CURL_XFER_RECV, -1, TRUE);
|
||||
Curl_xfer_setup_recv(data, FIRSTSOCKET, -1, TRUE);
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
@ -636,7 +636,7 @@ static CURLcode rtsp_do(struct Curl_easy *data, bool *done)
|
|||
if(result)
|
||||
goto out;
|
||||
|
||||
Curl_xfer_setup1(data, CURL_XFER_SENDRECV, -1, TRUE);
|
||||
Curl_xfer_setup_sendrecv(data, FIRSTSOCKET, -1, TRUE);
|
||||
|
||||
/* issue the request */
|
||||
result = Curl_req_send(data, &req_buffer, httpversion);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue