Skip to content

Connection recovery #28

@Mikanoshi

Description

@Mikanoshi

How to reconnect after the connection loss? StompClient doesn't do this automatically.
Heartbeat is enabled, it throws "10057 Socket is not connected" when encounters a problem and changes Connected to false, but nothing else happens. If I add this

if not lClient.Connected then lClient.Connect;

then there is a socket error 10054 Connection reset by peer (if network was down) or 10061 Connection Refused (if I killed connection using firewall's tool). Also tried lClient.Disconnect before connecting and even lClient := lClient.Clone;, same results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions