Re: [Live-devel] Fix for deadlock

2010-02-03 Thread Jeremy Noring
On Wed, Feb 3, 2010 at 6:48 PM, Ross Finlayson wrote: > Jeremy, > > I applied your previous patches (to turn 'nonblocking' mode on, then off > for the socket if there's a timeout parameter), and it will appear in the > next release, but I'm not going to apply this one, because synchronous > (block

Re: [Live-devel] Fix for deadlock

2010-02-03 Thread Ross Finlayson
Jeremy, I applied your previous patches (to turn 'nonblocking' mode on, then off for the socket if there's a timeout parameter), and it will appear in the next release, but I'm not going to apply this one, because synchronous (blocking) socket reads in "RTSPClient" will eventually be going aw

[Live-devel] Fix for deadlock

2010-02-03 Thread Jeremy Noring
When streaming over TCP, Live555 can deadlock if it loses the connection to the server for whatever reason (internet goes down, server has a power outage, LAN fails, etc.). I tracked the deadlock down to RTPInterface::handleRead: while ((curBytesRead = readSocket(envir(), fNextTCPReadStreamSo