Opened 15 years ago
Closed 14 years ago
#7402 closed patch (fixed)
Socket leak + select overflow in HDHomeRun support
Reported by: | Owned by: | Isaac Richards | |
---|---|---|---|
Priority: | minor | Milestone: | 0.23 |
Component: | MythTV - General | Version: | head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
Socket leak + select overflow in HDHomeRun support.
Socket leak is due to a missing close() in hdhomerun_discover.c detecting local IP addresses.
Select overflow occurs when the system has allocated over 1024 sockets to mythtv.
Problem is noticeable when EIT support is enabled - mythbackend can crash or stop recording within a few days.
The attached patch makes the following changes:
hdhomerun_control: remove select code and tweak timeout setting.
hdhomerun_discover: remove select code and configure sockets to be non-blocking. add missing close call to fix socket leak.
Nick - Silicondust (HDHomeRun)
Attachments (1)
Change History (4)
Changed 15 years ago by
Attachment: | hdhomerun_mythtv_ticket7402.patch added |
---|
patch as per ticket description