mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 11:51:57 +00:00
SRT: fix utest failed
This commit is contained in:
parent
e13d16439e
commit
b566182f0b
2 changed files with 11 additions and 2 deletions
|
@ -26,12 +26,18 @@ srt_server {
|
|||
listen 10080;
|
||||
maxbw 1000000000;
|
||||
connect_timeout 4000;
|
||||
peerlatency 300;
|
||||
recvlatency 300;
|
||||
peerlatency 0;
|
||||
recvlatency 0;
|
||||
}
|
||||
|
||||
# @doc https://github.com/ossrs/srs/issues/1147#issuecomment-577607026
|
||||
vhost __defaultVhost__ {
|
||||
srt {
|
||||
enabled on;
|
||||
srt_to_rtmp on;
|
||||
rtmp_to_srt on;
|
||||
}
|
||||
|
||||
http_remux {
|
||||
enabled on;
|
||||
mount [vhost]/[app]/[stream].flv;
|
||||
|
|
|
@ -2115,6 +2115,9 @@ VOID TEST(ConfigUnitTest, CheckDefaultValuesVhost)
|
|||
VOID TEST(ConfigUnitTest, CheckDefaultValuesGlobal)
|
||||
{
|
||||
if (true) {
|
||||
// Schedule thread once, to update last_clock in state-thread.
|
||||
srs_usleep(1);
|
||||
|
||||
srs_utime_t t0 = srs_update_system_time();
|
||||
srs_usleep(10 * SRS_UTIME_MILLISECONDS);
|
||||
srs_utime_t t1 = srs_update_system_time();
|
||||
|
|
Loading…
Reference in a new issue