You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you have an example? That sounds like a much more severe data race than this change would fix, but I don't see how you could encounter that situation, since read_callbacks should only occur after this method calls CURLPAUSE_CONT.
So I've hit this in the IO thread PR by just doing
using Downloads
url ="https://httpbingo.julialang.org/put"
file =tempname()
write(file, "Hello, world!")
resp =nothing
body =sprint() do output
resp =request(url; output=output, input=file)
end
I'm still grasping my way around this codebase, but I don't see a way that read_callbacks is forced to run after upload_data has run. It might also be a bug on the IO thread PR, but the other issues i've seen so far are those that use the running of the IO Loop as an implicit synchronization step.
@gbaraldi, what do you think of @vtjnash's latest version of this? Does it fix the issue for you? I'm happy to merge (and backport) whatever version this you guys settle on.
We discussed this during the multi-threading WG call. I just tested locally and it looks good.
Deployed this to JuliaLang/julia#50880 and we will see what Base CI says.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
upload_datamight seteasy.inputto nothing before it's actually read ifread_callbacksruns before it.