Skip to content

Neither timeouts nor keepalive working  #1059

Description

@bryaan

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions