mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-10 22:31:08 +02:00
reset byte counter at 0xf0000000 to fix publishing from fmle
This commit is contained in:
parent
a43bafe3de
commit
b31539ce95
|
@ -272,6 +272,13 @@ ngx_rtmp_recv(ngx_event_t *rev)
|
|||
b->last += n;
|
||||
s->in_bytes += n;
|
||||
|
||||
if (s->in_bytes >= 0xf0000000) {
|
||||
ngx_log_debug0(NGX_LOG_DEBUG_RTMP, c->log, 0,
|
||||
"resetting byte counter");
|
||||
s->in_bytes = 0;
|
||||
s->in_last_ack = 0;
|
||||
}
|
||||
|
||||
if (s->ack_size && s->in_bytes - s->in_last_ack >= s->ack_size) {
|
||||
|
||||
s->in_last_ack = s->in_bytes;
|
||||
|
|
Loading…
Reference in a new issue