Skip to content

ws_upgrade doesn't alter keepalive value #220

@Gazler

Description

@Gazler

Given the following code snippet:

gun:open(Host, Port, #{})
gun:ws_upgrade(Pid, Url, [], #{keepalive=> infinity})

The keepalive continues to use the default value, and a keepalive is sent after 5 seconds.

The following correctly sets the keepalive value:

gun:open(Host, Port, #{ws_opts => #{keepalive => infinity}})
gun:ws_upgrade(Pid, Url, [], #{})

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