A change in my corporate antivirus cause problem when I try to install new packages.
I tried to change JULIA_PKG_DOWNLOAD_TIMEOUT and Curl.CURLOPT_LOW_SPEED limits but it seems to have no effect:
julia> ENV["JULIA_PKG_DOWNLOAD_TIMEOUT"]
"2000"
julia> ENV["JULIA_PKG_D"]^C
julia> using Downloads, Downloads.Curl
julia> Downloads.EASY_HOOK[] = (easy, info) -> begin
# Désactive le timeout de vitesse basse (low speed limit/time)
Curl.setopt(easy, Curl.CURLOPT_LOW_SPEED_TIME, 0)
Curl.setopt(easy, Curl.CURLOPT_LOW_SPEED_LIMIT, 0)
end
[ Warning: CURLOPT_LOW_SPEED_TIME is defined in LibCURL and is not public in Downloads.Curl
[ Warning: CURLOPT_LOW_SPEED_LIMIT is defined in LibCURL and is not public in Downloads.Curl
#2 (generic function with 1 method)
(@v1.12) pkg> add General
Installing known registries into `~/.julia`
ERROR: could not download https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/a569d1e036b51ee1f6cf569c1bf28d0df3095bd6
Exception: RequestError: HTTP/2 200 (Operation too slow. Less than 1 bytes/sec transferred the last 20 seconds) while requesting https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/a569d1e036b51ee1f6cf569c1bf28d0df3095bd6
julia> Downloads.EASY_HOOK[] = (easy, info) -> begin
# Désactive le timeout de vitesse basse (low speed limit/time)
LibCurl.Curl.setopt(easy, Curl.CURLOPT_LOW_SPEED_TIME, 0)
LibCurl.Curl.setopt(easy, Curl.CURLOPT_LOW_SPEED_LIMIT, 0)
end
#5 (generic function with 1 method)
(@v1.12) pkg> add General
Installing known registries into `~/.julia`
ERROR: could not download https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/a569d1e036b51ee1f6cf569c1bf28d0df3095bd6
Exception: RequestError: HTTP/2 200 (Operation too slow. Less than 1 bytes/sec transferred the last 20 seconds) while requesting https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/a569d1e036b51ee1f6cf569c1bf28d0df3095bd6
(@v1.12) pkg>
Any hints ?