Re: [Live-devel] When streaming RTP over TCP, Live555 Proxy Server sometimes does not reconnect to 'back end' device

2017-02-25 Thread Erik Montnemery
> I've found one more more similar issue, the new one is triggered by the > following sequence: > - Connection to back-end server is torn down > - The torn down connection triggers a read error which causes the socket to > be closed > - If a client to the proxy at this point issues PLAY, the clos

Re: [Live-devel] When streaming RTP over TCP, Live555 Proxy Server sometimes does not reconnect to 'back end' device

2017-02-01 Thread Erik Montnemery
> This error is always caused by a socket being closed without > disableBackgroundHandling() > or, equivalently > turnOffBackgroundReadHandling() > having been first called on it. As I understand it, the socket is properly closed, but the (now closed) socket number is incorrectly re

Re: [Live-devel] When streaming RTP over TCP, Live555 Proxy Server sometimes does not reconnect to 'back end' device

2017-01-30 Thread Erik Montnemery
> I have now installed a new version (2017.01.26) of the “LIVE555 Streaming > Media” code that incorporates your patch (mostly). Thanks a lot Ross, this is great! I've found one more more similar issue, the new one is triggered by the following sequence: - Connection to back-end server is torn dow

Re: [Live-devel] When streaming RTP over TCP, Live555 Proxy Server sometimes does not reconnect to 'back end' device

2017-01-07 Thread Erik Montnemery
>> The problem frequently occurs in the following scenarios: >> 1) ProxyRTSPClient::continueAfterLivenessCommand called from within >> the stack frame of SocketDescriptor::tcpReadHandler. >> 2) A client to the proxy server issues PLAY while the connection to the >> 'back end' is being reestablished

Re: [Live-devel] When streaming RTP over TCP, Live555 Proxy Server sometimes does not reconnect to 'back end' device

2017-01-03 Thread Erik Montnemery
> The problem frequently occurs in the following scenarios: > 1) ProxyRTSPClient::continueAfterLivenessCommand called from within > the stack frame of SocketDescriptor::tcpReadHandler. > 2) A client to the proxy server issues PLAY while the connection to the > 'back end' is being reestablished. It

Re: [Live-devel] When streaming RTP over TCP, Live555 Proxy Server sometimes does not reconnect to 'back end' device

2017-01-01 Thread Erik Montnemery
er TCP), thus preventing a client from issuing a PLAY while connection to 'back-end' is being reestablished? (Log is available if it's of any use) /Erik 2016-12-26 17:03 GMT+01:00 Erik Montnemery : > Hi, > > Most of the time, the proxy server reconnects to the 'back-en

[Live-devel] When streaming RTP over TCP, Live555 Proxy Server sometimes does not reconnect to 'back end' device

2016-12-26 Thread Erik Montnemery
Hi, Most of the time, the proxy server reconnects to the 'back-end' server after an error or loss of connection, but every now and then the following happens: Error or connection loss is detected, and the reset sequence is performed. However, after the new connection to the 'back end' server is i

Re: [Live-devel] Live555 Proxy Server sometimes does not proxy source after connection loss

2016-10-02 Thread Erik Montnemery
>>> 1) The proxyserver reconnects to the source, but no data frames are >>> forwarded to the clients. >> >> If no data are forwarded to the (‘front-end’) clients, then that must mean >> that the ‘back-end’ server was not sending any data to the proxy server. If >> the ‘back-end’ server appears r

Re: [Live-devel] Condition for pause of sub-stream in ProxyServerMediaSubsession::closeStreamSource

2016-09-30 Thread Erik Montnemery
Thanks, Ross! > > our code here is conservative: If there’s another client using the session, > then we send a “PAUSE” only on the particular subsession that’s being closed. OK, so just so I understand: In the case I described, the client was streaming only one track over TCP. When the TCP connec

[Live-devel] Condition for pause of sub-stream in ProxyServerMediaSubsession::closeStreamSource

2016-09-27 Thread Erik Montnemery
Hi, I have a question about the PAUSE logic in ProxyServerMediaSubsession::closeStreamSource. Consider the following scenario: Proxy server is proxying a stream with two subsessions: - RTP/video/H264 - RTP/audio/MPEG4-GENERIC Client A connects to the proxy and does a SETUP specifically for the v

Re: [Live-devel] Live555 Proxy Server sometimes does not proxy source after connection loss

2016-09-25 Thread Erik Montnemery
>> >> To reproduce the issue: >> - Restart 'back end' server >> - RTSP proxy will reconnect, and reuse the previous SESSION identifier >> for PLAY / PAUSE, assuming the session is still valid >> - 'Back end' server incorrectly accepts this, although the SESSION has >> not been setup > > I don’t und

Re: [Live-devel] Live555 Proxy Server sometimes does not proxy source after connection loss

2016-09-25 Thread Erik Montnemery
>> 1) The proxyserver reconnects to the source, but no data frames are >> forwarded to the clients. > > If no data are forwarded to the (‘front-end’) clients, then that must mean > that the ‘back-end’ server was not sending any data to the proxy server. If > the ‘back-end’ server appears respons

Re: [Live-devel] Live555 Proxy Server sometimes does not proxy source after connection loss

2016-09-12 Thread Erik Montnemery
> Actually, all of the client’s ‘request queues’ should be reset by > “RTSPClient::reset()”. > > I’ve now installed a new version (2016.09.08) of the “LIVE555 Streaming > Media” code that fixes this. Thanks a lot, Ross! I did some extended testing by modifying one of the 'back-end' devices to r

Re: [Live-devel] Live555 Proxy Server sometimes does not proxy source after connection loss

2016-09-07 Thread Erik Montnemery
RTSPClient::sendRequest from: if (!fRequestsAwaitingConnection.isEmpty()) { To: if (!fRequestsAwaitingConnection.isEmpty() && fInputSocketNum >= 0) { /Erik 2016-09-05 21:28 GMT+02:00 Erik Montnemery : > Thanks Ross, > > Regarding issue 1) > You might be right, I'll try t

Re: [Live-devel] Live555 Proxy Server sometimes does not proxy source after connection loss

2016-09-05 Thread Erik Montnemery
Thanks Ross, Regarding issue 1) You might be right, I'll try to reproduce while recording network traffic. Regarding issue 2) > the state for the stream has timed out, and the proxy server then attempts to > re-open a RTSP connection to the ‘back-end’ server. However, this appears to > be hangi

[Live-devel] Live555 Proxy Server sometimes does not proxy source after connection loss

2016-09-01 Thread Erik Montnemery
Hi, Most of the time, the proxy server reconnects to the source after a loss of connection to a source, but every now and then I observe one of the following issues: 1) The proxyserver reconnects to the source, but no data frames are forwarded to the clients. An example log of scenario 1) is paste

Re: [Live-devel] Live555 Proxy Server - Stuck in endless loop

2016-04-17 Thread Erik Montnemery
>> By the way, I think there might be a bug in the handling of the >> periodic liveness commands: > No, the periodic ‘liveness’ commands are intended to test that the TCP > connection is still alive, and also to compensate for a large number of > servers that require these periodic commands in te

Re: [Live-devel] Live555 Proxy Server - Stuck in endless loop

2016-03-31 Thread Erik Montnemery
> OK, I still can’t quite figure out what’s going wrong here, but I think I’m > getting closer. I’ve just installed a new version (2016.03.16) of the code > that adds some extra checking, and some more ‘internal error’ debugging > fprintf()s. > Please run this new version, and let me know if yo

Re: [Live-devel] Live555 Proxy Server - Stuck in endless loop

2016-03-26 Thread Erik Montnemery
> OK, I still can’t quite figure out what’s going wrong here, but I think I’m > getting closer. I’ve just installed a new version (2016.03.16) of the code > that adds some extra checking, > and some more ‘internal error’ debugging fprintf()s. Please run this new > version, and let me know if y

Re: [Live-devel] Live555 Proxy Server - Stuck in endless loop

2016-03-15 Thread Erik Montnemery
2016-01-24 22:22 GMT+01:00 Ross Finlayson : >> On Jan 12, 2016, at 1:48 PM, Erik Montnemery wrote: >> >> I'm using the live555ProxyServer to be able to reliably record and view >> streams from four cheap cameras concurrently. >> Recording is done in 15 minut

[Live-devel] Live555 Proxy Server - Already connected clients stall when additional client connects

2016-01-18 Thread Erik Montnemery
Hi, I'm using the live555ProxyServer to be able to record and view streams from four cheap cameras concurrently. Version of live555ProxyServer is 2015.12.22 There seems to be something strange going on when an additional client connects a stream which is already being played by another client. Re

[Live-devel] Live555 Proxy Server - Strange behavior when additional client connects

2016-01-18 Thread Erik Montnemery
As mentioned earlier, I'm using the live555ProxyServer to be able to record and view streams from four cheap cameras concurrently. There seems to be something strange going on when an additonal client connects to an already active proxied stream. The stream is h264+aac. After some testing it seem

[Live-devel] Live555 Proxy Server - Stuck in endless loop

2016-01-12 Thread Erik Montnemery
I'm using the live555ProxyServer to be able to reliably record and view streams from four cheap cameras concurrently. Recording is done in 15 minute chunks with 15 seconds of overlap, meaning there will normally be between 4-8 active clients for the 4 proxied streams. The live 555 version is 2015.1