Skip to content

Commit b31539c

Browse files
committed
reset byte counter at 0xf0000000 to fix publishing from fmle
1 parent a43bafe commit b31539c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ngx_rtmp_handler.c

+7
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,13 @@ ngx_rtmp_recv(ngx_event_t *rev)
272272
b->last += n;
273273
s->in_bytes += n;
274274

275+
if (s->in_bytes >= 0xf0000000) {
276+
ngx_log_debug0(NGX_LOG_DEBUG_RTMP, c->log, 0,
277+
"resetting byte counter");
278+
s->in_bytes = 0;
279+
s->in_last_ack = 0;
280+
}
281+
275282
if (s->ack_size && s->in_bytes - s->in_last_ack >= s->ack_size) {
276283

277284
s->in_last_ack = s->in_bytes;

0 commit comments

Comments
 (0)