Skip to content

echo example - recovery from failure #50

@csdrane

Description

@csdrane

I have a question about recovery from tcp socket errors. Using the echo example, run client.js and server.js.

If you abruptly restart client.js, server.js is able to recover from and a new stream is created. But, if you restart server.js, no new stream is ever created, despite client reconnecting.

I'm unclear on why they behave differently. I suspect that in client.js, that the link.stream() breaks once server restarts, and for some reason a new link status event isn't emitted. So no new link.stream() call occurs.

What changes would need to be made to the code to have both client and server able to recover from a restart?

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