recorder: limit maximum part size (#4674) (#4760)

this prevents RAM exhaustion.
This commit is contained in:
Alessandro Ros 2025-07-20 19:16:33 +02:00 committed by GitHub
parent bc95f6240b
commit 9ddcbf5c97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 29 additions and 4 deletions

View file

@ -775,6 +775,7 @@ func (pa *path) startRecording() {
PathFormat: pa.conf.RecordPath,
Format: pa.conf.RecordFormat,
PartDuration: time.Duration(pa.conf.RecordPartDuration),
MaxPartSize: pa.conf.RecordMaxPartSize,
SegmentDuration: time.Duration(pa.conf.RecordSegmentDuration),
PathName: pa.name,
Stream: pa.stream,