mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine const timeouts in time unit
This commit is contained in:
parent
61afca7160
commit
a1398892d0
7 changed files with 9 additions and 9 deletions
|
@ -48,7 +48,7 @@ using namespace std;
|
|||
#include <srs_app_rtmp_conn.hpp>
|
||||
|
||||
// when edge timeout, retry next.
|
||||
#define SRS_EDGE_INGESTER_TMMS (5 * SRS_UTIME_MILLISECONDS)
|
||||
#define SRS_EDGE_INGESTER_TMMS (5 * SRS_UTIME_SECONDS)
|
||||
|
||||
// when edge error, wait for quit
|
||||
#define SRS_EDGE_FORWARDER_TMMS (150 * SRS_UTIME_MILLISECONDS)
|
||||
|
@ -218,7 +218,7 @@ string SrsEdgeIngester::get_curr_origin()
|
|||
}
|
||||
|
||||
// when error, edge ingester sleep for a while and retry.
|
||||
#define SRS_EDGE_INGESTER_CIMS (3 * SRS_UTIME_MILLISECONDS)
|
||||
#define SRS_EDGE_INGESTER_CIMS (3 * SRS_UTIME_SECONDS)
|
||||
|
||||
srs_error_t SrsEdgeIngester::cycle()
|
||||
{
|
||||
|
@ -506,7 +506,7 @@ void SrsEdgeForwarder::stop()
|
|||
}
|
||||
|
||||
// when error, edge ingester sleep for a while and retry.
|
||||
#define SRS_EDGE_FORWARDER_CIMS (3 * SRS_UTIME_MILLISECONDS)
|
||||
#define SRS_EDGE_FORWARDER_CIMS (3 * SRS_UTIME_SECONDS)
|
||||
|
||||
srs_error_t SrsEdgeForwarder::cycle()
|
||||
{
|
||||
|
|
|
@ -87,7 +87,7 @@ void SrsEncoder::on_unpublish()
|
|||
}
|
||||
|
||||
// when error, encoder sleep for a while and retry.
|
||||
#define SRS_RTMP_ENCODER_CIMS (3000 * SRS_UTIME_MILLISECONDS)
|
||||
#define SRS_RTMP_ENCODER_CIMS (3 * SRS_UTIME_SECONDS)
|
||||
|
||||
srs_error_t SrsEncoder::cycle()
|
||||
{
|
||||
|
|
|
@ -174,7 +174,7 @@ srs_error_t SrsForwarder::on_video(SrsSharedPtrMessage* shared_video)
|
|||
}
|
||||
|
||||
// when error, forwarder sleep for a while and retry.
|
||||
#define SRS_FORWARDER_CIMS (3000 * SRS_UTIME_MILLISECONDS)
|
||||
#define SRS_FORWARDER_CIMS (3 * SRS_UTIME_SECONDS)
|
||||
|
||||
srs_error_t SrsForwarder::cycle()
|
||||
{
|
||||
|
|
|
@ -46,7 +46,7 @@ using namespace std;
|
|||
#define SRS_HTTP_BODY_BUFFER (32 * 1024)
|
||||
|
||||
// the timeout for hls notify, in ms.
|
||||
#define SRS_HLS_NOTIFY_TMMS (10 * SRS_UTIME_MILLISECONDS)
|
||||
#define SRS_HLS_NOTIFY_TMMS (10 * SRS_UTIME_SECONDS)
|
||||
|
||||
SrsHttpHooks::SrsHttpHooks()
|
||||
{
|
||||
|
|
|
@ -168,7 +168,7 @@ void SrsIngester::fast_stop()
|
|||
|
||||
// when error, ingester sleep for a while and retry.
|
||||
// ingest never sleep a long time, for we must start the stream ASAP.
|
||||
#define SRS_AUTO_INGESTER_CIMS (3000 * SRS_UTIME_MILLISECONDS)
|
||||
#define SRS_AUTO_INGESTER_CIMS (3 * SRS_UTIME_SECONDS)
|
||||
|
||||
srs_error_t SrsIngester::cycle()
|
||||
{
|
||||
|
|
|
@ -485,7 +485,7 @@ srs_error_t SrsKafkaProducer::on_close(int key)
|
|||
return worker->execute(new SrsKafkaMessage(this, key, obj));
|
||||
}
|
||||
|
||||
#define SRS_KAKFA_CIMS (3000 * SRS_UTIME_MILLISECONDS)
|
||||
#define SRS_KAKFA_CIMS (3 * SRS_UTIME_SECONDS)
|
||||
|
||||
srs_error_t SrsKafkaProducer::cycle()
|
||||
{
|
||||
|
|
|
@ -76,7 +76,7 @@ void SrsNgExec::on_unpublish()
|
|||
}
|
||||
|
||||
// when error, ng-exec sleep for a while and retry.
|
||||
#define SRS_RTMP_EXEC_CIMS (3000 * SRS_UTIME_MILLISECONDS)
|
||||
#define SRS_RTMP_EXEC_CIMS (3 * SRS_UTIME_SECONDS)
|
||||
srs_error_t SrsNgExec::cycle()
|
||||
{
|
||||
srs_error_t err = srs_success;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue