Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CURLOPT_DEBUGFUNCTION.3: warn about internal handles #12034

Closed
wants to merge 1 commit into from

Conversation

jay
Copy link
Member

@jay jay commented Oct 5, 2023

  • Warn that the user's debug callback may be called with the handle parameter set to an internal handle.

Without this warning the user may assume that the only handles their debug callback receives are the easy handles on which they set CURLOPT_DEBUGFUNCTION.

This is a follow-up to f8cee8c which changed DoH handles to inherit the debug callback function set in the user's easy handle. As a result those handles are now passed to the user's debug callback function.

Closes #xxxx


I did not mention DoH specifically in case we want to expand on it later, like for example in the future we may want to make the connection closure internal handle inherit the user's debug function and verbosity. (See #11878)

- Warn that the user's debug callback may be called with the handle
  parameter set to an internal handle.

Without this warning the user may assume that the only handles their
debug callback receives are the easy handles on which they set
CURLOPT_DEBUGFUNCTION.

This is a follow-up to f8cee8c which changed DoH handles to inherit
the debug callback function set in the user's easy handle. As a result
those handles are now passed to the user's debug callback function.

Closes #xxxx
@jay jay closed this in 0dc40b2 Oct 8, 2023
@jay jay deleted the update_dbgfunc_doc branch October 8, 2023 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants