class

MeshCoreTCPMux::SigningLease

Inherits Reference < Object

Constants

INACTIVITY_TIMEOUT = 30.seconds

Protects the companion's single incremental signing operation from interleaved clients. Tracks its owner, accepted byte limit, pending command, and inactivity deadline.

Constructors

new(inactivity_timeout : Time::Span = INACTIVITY_TIMEOUT)
Source

Instance methods

accepted_bytes
Source
accepted_start(response : Bytes, now : Time::Span) : Nil
Source
begin_data(owner : Int64, command : Bytes, now : Time::Span) : Admission
Source
begin_finish(owner : Int64, command : Bytes, now : Time::Span) : Admission
Source
data_response(response : Bytes, now : Time::Span) : Nil
Source
expire(now : Time::Span) : Bool
Source
finish_response(response : Bytes, now : Time::Span) : Nil
Source
limit
Source
occupied?(now : Time::Span) : Bool
Source
owner
Source
owner_gone(owner : Int64) : Nil
Source
rejected_start
Source
start(owner : Int64, command : Bytes, now : Time::Span) : Bool
Source

Nested types