mirror of
https://github.com/arut/nginx-rtmp-module.git
synced 2025-08-06 15:00:18 +08:00
reset byte counter at 0xf0000000 to fix publishing from fmle
This commit is contained in:
@ -272,6 +272,13 @@ ngx_rtmp_recv(ngx_event_t *rev)
|
|||||||
b->last += n;
|
b->last += n;
|
||||||
s->in_bytes += 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) {
|
if (s->ack_size && s->in_bytes - s->in_last_ack >= s->ack_size) {
|
||||||
|
|
||||||
s->in_last_ack = s->in_bytes;
|
s->in_last_ack = s->in_bytes;
|
||||||
|
Reference in New Issue
Block a user