Skip to content

Re-connect throttle TimerTask continues to run after client.disconnect() #24

@stevejagodzinski

Description

@stevejagodzinski

STR:

  1. Create an impl of DefaultHookupClient with a specified throttle
    val uri="ws://doesnotexist:8080"
    val reconnectThrottle = IndefiniteThrottle(Duration(100, MILLISECONDS), Duration(2000, MILLISECONDS))
    val clientImpl = new DefaultHookupClient(HookupClientConfig(new URI(uri), throttle = reconnectThrottle)) { // impl omitted }

  2. connect()

  3. clientImpl.disconnect()

Connection to host [ws://doesnotexist:8080] lost, reconnecting in 2 seconds
Connection to host [ws://doesnotexist:8080] lost, reconnecting in 2 seconds
Connection to host [ws://doesnotexist:8080] lost, reconnecting in 2 seconds

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions