[mythtv-commits] Ticket #3186: Recording doesn't end

MythTV mythtv at cvs.mythtv.org
Wed Mar 21 09:04:21 UTC 2007


#3186: Recording doesn't end
-----------------------+----------------------------------------------------
 Reporter:  anonymous  |        Owner:  ijr    
     Type:  defect     |       Status:  closed 
 Priority:  major      |    Milestone:  0.21   
Component:  mythtv     |      Version:  head   
 Severity:  medium     |   Resolution:  invalid
-----------------------+----------------------------------------------------

Comment(by Mikkel):

 I think the problem is existing when using any external program such as
 dsmyth, MythTv Player etc, so you might want to consider it. (I do not not
 with xmbc-script and tapeworm).
 I have digged into the problem and found out why and when it happens so I
 am writing it here such that you know.

 The problem is when you have a connection which receive events and you
 close the connection with the "DONE" command. In this case, the socket is
 closed but it remains in the list which receives events. It is never
 removed from this list, so there just keep coming more and more broken
 connections. Maybe a socket should be removed from the list when the
 "DONE" command is sent, and sockets removed from the list when they turn
 out to be unresponsive.
 Actually, I think that all connections which are ended with "DONE" seems
 to be kept in the list - also when they do not have the "wantEvent" flag
 set. This will keep the list expanding, consume memory and make iterating
 the list slower
 Even though it is not happening with the mythfrontend, I still think it
 would be stability fix, and quite easy by removing a socket from the list
 when "DONE" is called.

 \Mikkel [Developer of MythTv Player]

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/3186#comment:14>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list