diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d93316..c5228c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,8 +17,7 @@ jobs: fail-fast: false matrix: version: - - '1.3' - - '1.6' + - '1.10' #Change to lts when runners bump the lts name - '1' # automatically expands to the latest stable 1.x release of Julia. - 'nightly' os: diff --git a/Project.toml b/Project.toml index d578dd5..bfaa166 100644 --- a/Project.toml +++ b/Project.toml @@ -13,7 +13,7 @@ NetworkOptions = "ca575930-c2e3-43a9-ace4-1e988b2c1908" ArgTools = "1.1" LibCURL = "0.6" NetworkOptions = "1.2" -julia = "1.3" +julia = "1.8" [extras] Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" diff --git a/src/Curl/Easy.jl b/src/Curl/Easy.jl index cf63f50..eaab8b2 100644 --- a/src/Curl/Easy.jl +++ b/src/Curl/Easy.jl @@ -371,11 +371,11 @@ function upload_data(easy::Easy, input::IO) while true data = eof(input) ? nothing : readavailable(input) easy.input === nothing && break + reset(easy.ready) easy.input = data curl_easy_pause(easy.handle, Curl.CURLPAUSE_CONT) wait(easy.ready) easy.input === nothing && break - easy.ready = Threads.Event() end end