Skip to content

Add missing set_in_callback around callback. - #3837

Closed
taiyu-len wants to merge 1 commit into
curl:masterfrom
taiyu-len:set-in-callback
Closed

Add missing set_in_callback around callback.#3837
taiyu-len wants to merge 1 commit into
curl:masterfrom
taiyu-len:set-in-callback

Conversation

@taiyu-len

Copy link
Copy Markdown
Contributor

Happened to find a callback not surrounded by the Curl_set_in_callback functions.

@bagder

bagder commented May 5, 2019

Copy link
Copy Markdown
Member

Thanks!

@bagder bagder closed this in 0eec832 May 5, 2019
@taiyu-len
taiyu-len deleted the set-in-callback branch May 5, 2019 09:19
@michaelforney

Copy link
Copy Markdown
Contributor

I noticed that after upgrading to curl 7.65.0, netsurf isn't working with HTTP redirects, and I bisected it down to this commit.

After some investigation, it looks like this is because netsurf is calling curl_multi_add_handle from within the CURLOPT_WRITEFUNCTION callback upon seeing a 3xx HTTP code.

I guess this is the sort of thing this commit is intended to prevent? Just wanted to check before submitting a netsurf bug report.

@jay

jay commented Jun 4, 2019

Copy link
Copy Markdown
Member

After some investigation, it looks like this is because netsurf is calling curl_multi_add_handle from within the CURLOPT_WRITEFUNCTION callback upon seeing a 3xx HTTP code.

I guess this is the sort of thing this commit is intended to prevent?

Yes that was the intention, please refer to the discussion in #2302.

@lock lock Bot locked as resolved and limited conversation to collaborators Sep 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants