TsgcTURNClient › Properties › RetransmissionOptions
UDP retransmission settings (RTO and MaxRetries) used to resend TURN requests when no response arrives.
property RetransmissionOptions: TsgcSTUNPRetransmissionClient_Options read FRetransmissionOptions write SetRetransmissionOptions;
—
UDP does not guarantee delivery, so TURN clients must retransmit ALLOCATE, REFRESH, CreatePermission and ChannelBind requests until a response arrives or a maximum number of retries is reached. This property only applies when Transport is stUDP; TCP and TLS rely on the transport for reliability.
oTURN.Transport := stUDP;
oTURN.RetransmissionOptions.Enabled := True;
oTURN.RetransmissionOptions.RTO := 500;
oTURN.RetransmissionOptions.MaxRetries := 7;
oTURN.Allocate;