mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine conf, add comments for other listen type
This commit is contained in:
parent
2cebaff9d8
commit
a0c0c94cf0
5 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,6 @@
|
||||||
# @see full.conf for detail config.
|
# @see full.conf for detail config.
|
||||||
|
|
||||||
listen 19350;
|
listen 19350;
|
||||||
chunk_size 65000;
|
|
||||||
vhost __defaultVhost__ {
|
vhost __defaultVhost__ {
|
||||||
enabled on;
|
enabled on;
|
||||||
gop_cache on;
|
gop_cache on;
|
||||||
|
|
0
trunk/conf/full.conf
Executable file → Normal file
0
trunk/conf/full.conf
Executable file → Normal file
0
trunk/conf/srs.conf
Executable file → Normal file
0
trunk/conf/srs.conf
Executable file → Normal file
|
@ -670,6 +670,7 @@ int SrsConfig::parse_file(const char* filename)
|
||||||
}
|
}
|
||||||
|
|
||||||
SrsConfDirective* conf = NULL;
|
SrsConfDirective* conf = NULL;
|
||||||
|
// check rtmp port specified by directive listen.
|
||||||
if ((conf = get_listen()) == NULL || conf->args.size() == 0) {
|
if ((conf = get_listen()) == NULL || conf->args.size() == 0) {
|
||||||
ret = ERROR_SYSTEM_CONFIG_INVALID;
|
ret = ERROR_SYSTEM_CONFIG_INVALID;
|
||||||
srs_error("line %d: conf error, "
|
srs_error("line %d: conf error, "
|
||||||
|
|
|
@ -325,7 +325,7 @@ int SrsServer::accept_client(SrsListenerType type, st_netfd_t client_stfd)
|
||||||
if (type == SrsListenerStream) {
|
if (type == SrsListenerStream) {
|
||||||
conn = new SrsClient(this, client_stfd);
|
conn = new SrsClient(this, client_stfd);
|
||||||
} else {
|
} else {
|
||||||
// handler others
|
// TODO: FIXME: handler others
|
||||||
}
|
}
|
||||||
srs_assert(conn);
|
srs_assert(conn);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue