Feature #2045
closedstreamdev-client filter socketpair() buffer overflow and resulting streaming unreliability
Description
With "Filter Streaming" enabled in streamdev-client, client-VDRs can become unreliably streaming programs, such as described in the following and other threads.
The appended patch is a suggested solution to the problem and includes a description of the analysis.
Files
Updated by te36 almost 10 years ago
Second patch, additional to the first one. This improves the behavior of TimedWrite and reduces errors and stream breakage. See more details in the patch itself.
Updated by te36 almost 10 years ago
Unrelated problem:
size 4096 for m_Buffer seems to be too small is too small for some programs. The following is output when watching Anixe HD. Doubling the size to 8192 did solve this problem.
Jan 9 14:13:29 ras-pi2 vdr: [7627] cStreamdevFilter::Reset skipping 4026 bytes
Jan 9 14:13:39 ras-pi2 vdr: [7627] ERROR: Streamdev: Section handler buffer overflow (70 bytes lost)
Jan 9 14:13:39 ras-pi2 vdr: [7627] cStreamdevFilter::Reset skipping 4026 bytes
Jan 9 14:13:49 ras-pi2 vdr: [7627] ERROR: Streamdev: Section handler buffer overflow (70 bytes lost)
Jan 9 14:13:49 ras-pi2 vdr: [7627] cStreamdevFilter::Reset skipping 4026 bytes
Jan 9 14:13:59 ras-pi2 vdr: [7627] ERROR: Streamdev: Section handler buffer overflow (70 bytes lost)
Jan 9 14:13:59 ras-pi2 vdr: [7627] cStreamdevFilter::Reset skipping 4026 bytes
Jan 9 14:14:09 ras-pi2 vdr: [7627] ERROR: Streamdev: Section handler buffer overflow (70 bytes lost)
Jan 9 14:14:09 ras-pi2 vdr: [7627] cStreamdevFilter::Reset skipping 4026 bytes
Updated by schmirl almost 10 years ago
- Status changed from New to Closed
- % Done changed from 90 to 100
Applied in changeset 84c6f6b6f363549e88efd01d12df35ae6e336578.