HTTP.jl icon indicating copy to clipboard operation
HTTP.jl copied to clipboard

Neither timeouts nor keepalive working

Open bryaan opened this issue 2 years ago • 1 comments

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

bryaan avatar Jun 01 '23 23:06 bryaan

Could this be related to any issues with the refactoring of try_with_timeout()?

https://github.com/JuliaServices/ConcurrentUtilities.jl/pull/22

bryaan avatar Jun 03 '23 18:06 bryaan