Re: [Live-devel] Possible bug in RTPInterface::sendDataOverTCP

2015-03-20 Thread Hardik Sangani
Hi , Thanks for your instant reply, I am not saying there is bug in code. I am really sorry if you felt so. we are using live555 code as RTSP server, we started with doing UDP streaming which works very well, now our customer wants to change it to TCP. so we are trying to debug. we are using wis

Re: [Live-devel] Possible bug in RTPInterface::sendDataOverTCP

2015-03-20 Thread Ross Finlayson
> I am trying to stream rtp over tcp and i am facing the issue like stream is > stopping after 3-4 mins(I am using VLC as a client) Oh please! Why do you think that this means that there is a bug in our code at all, let alone a bug in one specific function? I assume (although you didn’t say ex

Re: [Live-devel] Possible bug in RTPInterface::sendDataOverTCP

2015-03-20 Thread Hardik
Hi I am trying to stream rtp over tcp and i am facing the issue like stream is stopping after 3-4 mins(I am using VLC as a client), i applied following patch but didn't work for me. - sendResult = send(socketNum, (char const*)(&data[numBytesSentSoFar]), numBytesRemainingToSend, 0/*flag

Re: [Live-devel] Possible bug in RTPInterface::sendDataOverTCP

2014-09-19 Thread Ross Finlayson
> Probably increasing of the send buffer (SO_SNDBUF) can help Yes, you can call "increaseSendBufferTo()" in your application. However, you'll still get data loss if your stream's bitrate exceeds the capacity of your TCP connection (which is *not* the same as the nominal bitrate of your network

Re: [Live-devel] Possible bug in RTPInterface::sendDataOverTCP

2014-09-19 Thread Sergey Lvov via live-devel
--- Begin Message --- Thank you very much for detailed explanation. Probably increasing of the send buffer (SO_SNDBUF) can help, it's value depends on estimatedBitrate from RTPSink: if (rtpSink != NULL && rtpSink->estimatedBitrate() > 0) streamBitrate = rtpSink->estimatedBitrate(); if (rtpGroup

Re: [Live-devel] Possible bug in RTPInterface::sendDataOverTCP

2014-09-19 Thread Ross Finlayson
> I tried to fix the problem by this way: > > - sendResult = send(socketNum, (char const*)(&data[numBytesSentSoFar]), > numBytesRemainingToSend, 0/*flags*/); > + > + do { > + sendResult = send(socketNum, (char > const*)(&data[numBytesSentSoFar]), numBytesRemainingToSend