Skip to content

When socket server restart, onClose callback runs in Infinite loop? #84

@passionofvc

Description

@passionofvc

hi @sublimator
I use ripple-lib-java(com.ripple.client) to connect to rippled daemon server
for new validated transaction,
when socket server restart rippled, I found onClose callback runs in Infinite loop,
and continue to connect and disconnect.
Does the disconnect problem fixed?

        <client>                         < WebSocketTransport >                   <WS(WebSocketClient)>
    --->connect(String , OnConnected)
|--> --->connect(final String uri)
|    --->doConnect(String uri) -------- |
|                                       |--->ws.connect(URI.create(uri)); --|
|                                                                           |------>   ws.connect();
|
|                                                                              |----<---  onClose()  when socket server restart, callback here
|                                    |--<---handler.onDisconnected(false); <---|
|    <----onDisconnected(boolean) <--|
| -----<----doOnDisconnected()

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