mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
SRT: Reduce the SRT bug by limit the max times for retry.
This commit is contained in:
parent
339d942e7b
commit
0c036e0435
3 changed files with 23 additions and 1 deletions
|
@ -44,6 +44,7 @@ public:
|
|||
|
||||
void update_timestamp(long long now_ts);
|
||||
long long get_last_ts();
|
||||
int get_write_fail_count();
|
||||
|
||||
private:
|
||||
SRTSOCKET _conn_fd;
|
||||
|
@ -52,6 +53,7 @@ private:
|
|||
std::string _vhost;
|
||||
int _mode;
|
||||
long long _update_timestamp;
|
||||
int write_fail_cnt_;
|
||||
};
|
||||
|
||||
typedef std::shared_ptr<srt_conn> SRT_CONN_PTR;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue