mirror of
https://github.com/curl/curl.git
synced 2026-08-04 17:26:18 +03:00
memdebug: stop tracking send and recv
- they rarely catch any problems - we have other ways to test different send/recv problems - the number of such calls vary much more per invoke than others, making memdebugging harder - reducing the total number of fallible functions per test is good - they were not used as intended anyway Closes #20097
This commit is contained in:
parent
d4b62bff64
commit
a585cc35e5
8 changed files with 6 additions and 67 deletions
|
|
@ -120,7 +120,7 @@ size_t tool_read_cb(char *buffer, size_t sz, size_t nmemb, void *userdata)
|
|||
execute */
|
||||
if(per->uploadfile && !strcmp(per->uploadfile, ".") && per->infd > 0) {
|
||||
#if defined(_WIN32) && !defined(CURL_WINDOWS_UWP)
|
||||
rc = CURL_RECV(per->infd, buffer, curlx_uztosi(sz * nmemb), 0);
|
||||
rc = recv(per->infd, buffer, curlx_uztosi(sz * nmemb), 0);
|
||||
if(rc < 0) {
|
||||
if(SOCKERRNO == SOCKEWOULDBLOCK) {
|
||||
errno = 0;
|
||||
|
|
|
|||
|
|
@ -781,7 +781,7 @@ static DWORD WINAPI win_stdin_thread_func(void *thread_data)
|
|||
break;
|
||||
if(n == 0)
|
||||
break;
|
||||
nwritten = CURL_SEND(socket_w, buffer, n, 0);
|
||||
nwritten = send(socket_w, buffer, n, 0);
|
||||
if(nwritten == SOCKET_ERROR)
|
||||
break;
|
||||
if((DWORD)nwritten != n)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue