Skip to content

Command timeout/reconnection strategy #81

@jesperstarkar

Description

@jesperstarkar

Since there's no ping-protocol in AMCP, only sent messages can probe the socket's state. This can not be done at a lower level, due to node.js net.Socket restrictions.

So, when a command times out, we can expect the Socket to be down, IF the command was sent properly (which we normally can expect).

At the moment, we discard sent commands that time out. This should be one of three options:

  1. Discard
  2. Retry (max attempts)
  3. Verify and choose (test a simple INFO-command, then choose to discard or retry)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions