[mythtv-commits] Ticket #1605: backend filetransfer sockets unstable when connection goes away unexpectedly

MythTV mythtv at cvs.mythtv.org
Fri Mar 31 06:01:50 UTC 2006


#1605: backend filetransfer sockets unstable when connection goes away
unexpectedly
----------------------------------------+-----------------------------------
 Reporter:  jwestfall at surrealistic.net  |       Owner:  ijr 
     Type:  patch                       |      Status:  new 
 Priority:  minor                       |   Milestone:      
Component:  mythtv                      |     Version:  head
 Severity:  medium                      |  
----------------------------------------+-----------------------------------
 Hi

 To reproduce the issue start a commflag then ctrl-c it.  The backend likes
 to crash.

 patch does the follow[[br]]

 - add UpRef/DownRef functions to FileTransfer class[[br]]
 - convert MainServer::endConnection to use the UpRef/DownRef functions,
 its not safe to delete the socket or the associated FileTransfer object in
 this function.[[br]]
 - add some additional checking in functions that use
 QSocketDevice::writeBlock, its possible for the socket to close by it
 never returns an error.

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


More information about the mythtv-commits mailing list