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)
SourceInstance methods
accepted_bytes
Sourceaccepted_start(response : Bytes, now : Time::Span) : Nil
Sourcebegin_data(owner : Int64, command : Bytes, now : Time::Span) : Admission
Sourcebegin_finish(owner : Int64, command : Bytes, now : Time::Span) : Admission
Sourcedata_response(response : Bytes, now : Time::Span) : Nil
Sourceexpire(now : Time::Span) : Bool
Sourcefinish_response(response : Bytes, now : Time::Span) : Nil
Sourcelimit
Sourceoccupied?(now : Time::Span) : Bool
Sourceowner
Sourceowner_gone(owner : Int64) : Nil
Sourcerejected_start
Sourcestart(owner : Int64, command : Bytes, now : Time::Span) : Bool
Source