winlin

refine conf, add comments for other listen type

@@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
3 # @see full.conf for detail config. 3 # @see full.conf for detail config.
4 4
5 listen 19350; 5 listen 19350;
6 -chunk_size 65000;  
7 vhost __defaultVhost__ { 6 vhost __defaultVhost__ {
8 enabled on; 7 enabled on;
9 gop_cache on; 8 gop_cache on;
@@ -670,6 +670,7 @@ int SrsConfig::parse_file(const char* filename) @@ -670,6 +670,7 @@ int SrsConfig::parse_file(const char* filename)
670 } 670 }
671 671
672 SrsConfDirective* conf = NULL; 672 SrsConfDirective* conf = NULL;
  673 + // check rtmp port specified by directive listen.
673 if ((conf = get_listen()) == NULL || conf->args.size() == 0) { 674 if ((conf = get_listen()) == NULL || conf->args.size() == 0) {
674 ret = ERROR_SYSTEM_CONFIG_INVALID; 675 ret = ERROR_SYSTEM_CONFIG_INVALID;
675 srs_error("line %d: conf error, " 676 srs_error("line %d: conf error, "
@@ -325,7 +325,7 @@ int SrsServer::accept_client(SrsListenerType type, st_netfd_t client_stfd) @@ -325,7 +325,7 @@ int SrsServer::accept_client(SrsListenerType type, st_netfd_t client_stfd)
325 if (type == SrsListenerStream) { 325 if (type == SrsListenerStream) {
326 conn = new SrsClient(this, client_stfd); 326 conn = new SrsClient(this, client_stfd);
327 } else { 327 } else {
328 - // handler others 328 + // TODO: FIXME: handler others
329 } 329 }
330 srs_assert(conn); 330 srs_assert(conn);
331 331