mirror of
https://github.com/curl/curl.git
synced 2026-07-28 02:53:07 +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
|
|
@ -402,37 +402,6 @@ curl_socket_t curl_dbg_socket(int domain, int type, int protocol,
|
|||
return sockfd;
|
||||
}
|
||||
|
||||
SEND_TYPE_RETV curl_dbg_send(SEND_TYPE_ARG1 sockfd,
|
||||
SEND_QUAL_ARG2 SEND_TYPE_ARG2 buf,
|
||||
SEND_TYPE_ARG3 len, SEND_TYPE_ARG4 flags,
|
||||
int line, const char *source)
|
||||
{
|
||||
SEND_TYPE_RETV rc;
|
||||
if(countcheck("send", line, source))
|
||||
return -1;
|
||||
/* !checksrc! disable BANNEDFUNC 1 */
|
||||
rc = send(sockfd, buf, len, flags);
|
||||
if(source)
|
||||
curl_dbg_log("SEND %s:%d send(%lu) = %ld\n",
|
||||
source, line, (unsigned long)len, (long)rc);
|
||||
return rc;
|
||||
}
|
||||
|
||||
RECV_TYPE_RETV curl_dbg_recv(RECV_TYPE_ARG1 sockfd, RECV_TYPE_ARG2 buf,
|
||||
RECV_TYPE_ARG3 len, RECV_TYPE_ARG4 flags,
|
||||
int line, const char *source)
|
||||
{
|
||||
RECV_TYPE_RETV rc;
|
||||
if(countcheck("recv", line, source))
|
||||
return -1;
|
||||
/* !checksrc! disable BANNEDFUNC 1 */
|
||||
rc = recv(sockfd, buf, len, flags);
|
||||
if(source)
|
||||
curl_dbg_log("RECV %s:%d recv(%lu) = %ld\n",
|
||||
source, line, (unsigned long)len, (long)rc);
|
||||
return rc;
|
||||
}
|
||||
|
||||
#ifdef HAVE_SOCKETPAIR
|
||||
int curl_dbg_socketpair(int domain, int type, int protocol,
|
||||
curl_socket_t socket_vector[2],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue