Conversation
- 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
|
Also: due to changes over time, the macros were barely used. Contrary to original intention. |
There was a problem hiding this comment.
Pull request overview
This PR removes send/recv tracking from the memdebug system to improve test stability and reduce the number of fallible functions tracked during memory debugging. The tracking was deemed unnecessary as send/recv calls rarely catch problems and have high variability across test invocations.
Key changes:
- Removed
curl_dbg_send()andcurl_dbg_recv()debug wrapper functions - Removed
CURL_SENDandCURL_RECVmacros that redirected to debug wrappers - Updated all callsites to use native
send()andrecv()functions directly
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| lib/memdebug.c | Removed the curl_dbg_send() and curl_dbg_recv() debug wrapper function implementations |
| lib/curl_setup.h | Removed function declarations and macro definitions for CURL_SEND and CURL_RECV |
| tests/memanalyzer.pm | Removed send/recv counters from memory analysis statistics and calculations |
| scripts/checksrc.pl | Removed "send" and "recv" from the banned functions list (no longer need wrappers) |
| src/tool_doswin.c | Changed CURL_SEND macro call to direct send() function call |
| src/tool_cb_rea.c | Changed CURL_RECV macro call to direct recv() function call |
| lib/vquic/vquic.c | Changed CURL_SEND macro call to direct send() function call |
| lib/multi.c | Changed CURL_SEND macro call to direct send() function call |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
augment review |
🤖 Augment PR SummarySummary: This PR simplifies the memdebug facility by stopping debug tracking/failure-injection for socket Changes:
Technical Notes: This reduces the number of “fallible” operations tracked by memdebug and removes highly variable SEND/RECV counts from memdebug-derived test statistics. 🤖 Was this summary useful? React with 👍 or 👎 |
They were masked by `()`, which was also not necessary anymore. Follow-up to a585cc3 curl#20097 Follow-up to bf7375e curl#18503
Uh oh!
There was an error while loading. Please reload this page.