Skip to content

Document reconnect_after option in net.box:new #33

Closed
@mejedi

Description

@mejedi

With reconnect_after <timeout> option, net.box instance will automatically reconnect any time the connection is broken or if a connection attempt fails. The number of retries is unlimited. Once a connection is explicitly closed (or garbage-collected), reconnects stop.

Assume application maintains a connection to server X. With reconnect_after, transient network failures become transparent to the application. Reconnect happens automatically in the background and queries/requests that suffered due to connectivity loss are transparently retried.

In the presense of reconnect_after, wait_connected ignores transient failures. The wait completes once the connection is established or is closed explicitly.

Metadata

Metadata

Assignees

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