Skip to content

Commit

Permalink
[misc] update README files and recover some codes.
Browse files Browse the repository at this point in the history
  • Loading branch information
winshining committed Feb 28, 2018
1 parent 3f3a162 commit ac1b77a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
}

rtmp_auto_push on; #Windows不支持
rtmp_auto_push_reconnect 1s;
rtmp_auto_push_reconnect 1s; #Windows不支持
rtmp_socket_dir /tmp; #Windows不支持

rtmp {
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ Since some players don't support HTTP chunked transmission, it's better **NOT**
}

rtmp_auto_push on; #not supported by Windows
rtmp_auto_push_reconnect 1s;
rtmp_auto_push_reconnect 1s; #not supported by Windows
rtmp_socket_dir /tmp; #not supported by Windows

rtmp {
Expand Down
8 changes: 0 additions & 8 deletions ngx_rtmp_gop_cache_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -628,14 +628,6 @@ ngx_rtmp_gop_cache_send(ngx_rtmp_session_t *s)
}

for (cache = gctx->cache_head; cache; cache = cache->next) {
/**
* send only one GOP to decrease probability of
* 'TCP Window Full' which leads to playback lag
**/
if (gctx->gop_cache_count == 2 && cache->next) {
continue;
}

if (ctx->protocol == NGX_RTMP_PROTOCOL_HTTP) {
r = s->data;
if (r == NULL || (r->connection && r->connection->destroyed)) {
Expand Down

0 comments on commit ac1b77a

Please sign in to comment.