Home Contents | # bis:stopRetries | Bis | Core4 Lua Event System

## SYNOPSIS

1. bishandle:stopRetries()
2. bishandle:resetSequence()

## DESCRIPTION

Useful functions for error recovery.

In master mode, when a query has been sent to a slave, the system waits a configurable time for a reply and also can optionally try multiple times. Calling stopRetries() will stop trying. Any pending query is aborted and no callbacks are issued for that query. When no query is currently pending then the function does nothing. If the handle is in slave mode, the function throws a Lua error exception.

BiS uses sequence numbering to detect packet retransmission and avoid processing a packet twice. By calling resetSequence(), the receiver resets the retransmit detector, accepting any sequence number for the next received packet. This applies to all modes, master, slave and peer.

## SEE ALSO

bis:setRetryCount, bis:setRetryInterval