Home  Contents

bis:setRetryCount

Bis Core4 Lua Event System

SYNOPSIS

  1. bishandle:setRetryCount(n)
  2. bishandle:setRetryInterval(initial[, later])

DESCRIPTION

These functions have no useful purpose in slave mode.

In master mode, or when acting as a master in peer mode, the functions configure the retry and timeout behaviour when waiting for a response.

With bishandle:setRetryCount(), the number of tries is set to n. Values smaller than one are not useful and are interpreted as 1.

The function bishandle:setRetryInterval() sets the time that the system will wait for a response. The intervals are given in milliseconds. The value of initial is the timeout used for the first try. All further tries use the value of later. If later is not specified, it defaults to initial.