mirror of
https://github.com/curl/curl.git
synced 2026-08-25 06:23:30 +03:00
lib: xfer_setup and non-blocking shutdown
- clarify Curl_xfer_setup() with RECV/SEND flags and different calls for which socket they operate on. Add a shutdown flag for secondary sockets - change Curl_xfer_setup() calls to new functions - implement non-blocking connection shutdown at the end of receiving or sending a transfer Closes #13913
This commit is contained in:
parent
61b465208f
commit
385c62aabc
30 changed files with 301 additions and 124 deletions
|
|
@ -1028,7 +1028,6 @@ static CURLcode cf_socket_shutdown(struct Curl_cfilter *cf,
|
|||
unsigned char buf[1024];
|
||||
(void)sread(ctx->sock, buf, sizeof(buf));
|
||||
}
|
||||
cf_socket_close(cf, data);
|
||||
}
|
||||
*done = TRUE;
|
||||
return CURLE_OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue