[mythtv-commits] Ticket #7402: Socket leak + select overflow in HDHomeRun support

MythTV mythtv at cvs.mythtv.org
Fri Oct 23 04:11:30 UTC 2009


#7402: Socket leak + select overflow in HDHomeRun support
----------------------------------+-----------------------------------------
 Reporter:  jafa@…                |       Owner:  ijr    
     Type:  patch                 |      Status:  new    
 Priority:  minor                 |   Milestone:  unknown
Component:  MythTV - General      |     Version:  unknown
 Severity:  medium                |     Mlocked:  0      
----------------------------------+-----------------------------------------
 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)

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/7402>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list