mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Refine DTLS ARQ, use step interval
This commit is contained in:
parent
e61391028e
commit
ba6462aab4
5 changed files with 48 additions and 31 deletions
|
@ -124,6 +124,8 @@ protected:
|
|||
// DTLS packet cache, only last out-going packet.
|
||||
uint8_t* last_outgoing_packet_cache;
|
||||
int nn_last_outgoing_packet;
|
||||
// The stat for ARQ packets.
|
||||
int nn_arq_packets;
|
||||
public:
|
||||
SrsDtlsImpl(ISrsDtlsCallback* callback);
|
||||
virtual ~SrsDtlsImpl();
|
||||
|
@ -154,8 +156,8 @@ private:
|
|||
// The DTLS-client state to drive the ARQ thread.
|
||||
SrsDtlsState state_;
|
||||
// The timeout for ARQ.
|
||||
srs_utime_t arq_first;
|
||||
srs_utime_t arq_interval;
|
||||
int arq_to_ratios[8];
|
||||
public:
|
||||
SrsDtlsClientImpl(ISrsDtlsCallback* callback);
|
||||
virtual ~SrsDtlsClientImpl();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue