1
0
Fork 0
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:
Alex.CR 2022-01-29 01:07:01 -06:00 committed by GitHub
parent 339d942e7b
commit 0c036e0435
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 1 deletions

View file

@ -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;