[mythtv-commits] Ticket #210: WriteBlock Function would block indefinitly when bytesToWrite > written

MythTV mythtv at cvs.mythtv.org
Thu Aug 11 19:54:54 UTC 2005


#210: WriteBlock Function would block indefinitly when bytesToWrite > written
----------------------------------+-----------------------------------------
 Reporter:  mythtv at TheBlains.net  |       Owner:  ijr 
     Type:  patch                 |      Status:  new 
 Priority:  minor                 |   Milestone:      
Component:  mythtv                |     Version:  head
 Severity:  medium                |         Cc:                        |  
----------------------------------+-----------------------------------------
 I noticed that occasionally the WriteBlock function would not return.  I
 traced it down to a while loop that executed only when
 socket->bytesToWrite() >= written.

 I changed it to call socket->flush() and reduced the usleep which stopped
 the lockup in all my testing.

-- 
Ticket URL: <http://cvs.mythtv.org/trac/ticket/210>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list