HTTP.jl
HTTP.jl copied to clipboard
Neither timeouts nor keepalive working
Neither of the timeouts for HTTP.WebSockets.open() work. I expect the connect timeout to timeout when the internet is down and it cant connect, and idle timeout to timeout when its actively connected and the internet goes down.
using HTTP.WebSockets
url = "wss://api.gemini.com/v1/multimarketdata?symbols=ETHUSD&top_of_book=true"
WebSockets.open(url;
connect_timeout=10, # stop trying after n seconds
idle_timeout=10, # disconnect after no messages for n seconds
keepalive=true # should auto disconnect but doesn't
)
julia v1.9.0 HTTP.jl v1.9.6
Could this be related to any issues with the refactoring of try_with_timeout()?
https://github.com/JuliaServices/ConcurrentUtilities.jl/pull/22