[Red5] timeout problem
Stijn Janssens
red5 at zerotreize.com
Tue Mar 3 04:19:18 PST 2009
TIMEOUT_TIME should be "maximum time in ms after a client is
disconnected because of inactivity"
So if you make this 5100, your inactivity should be less then 5 seconds.
I've also tried to change the properties in red5-core with no success
which could suggest that the properties files are indeed not honored
by Red5 but I haven't looked into this in much detail so not sure if
I changed the right properties. I'll have a closer look later but try
the in-code runtime modification for now...
On 3 Mar 2009, at 11:58, red5 red5 wrote:
>
>
> I changed maxInactivity for RTMPConnection to 5100 in op/red5/
> conf/red5-core.xml
>
> But it doesn't fix the problem. Let me try your method, how
> much TIMEOUT_TIME should be given?
>
> thanks
>
>
>
> On Tue, Mar 3, 2009 at 3:49 PM, Walter Tak <walter at waltertak.com>
> wrote:
> Your suggestion implicates that the actual maximum inactivity in
> the properties are not being honored by Red5 ? Is that correct ?
>
>
> I had a similar problem and solved it by executing the following
> code in the roomConnect(IConnection conn) method:
>
> if(conn != null){
> if(conn instanceof RTMPMinaConnection){
> ((RTMPMinaConnection)conn).setMaxInactivity(TIMEOUT_TIME);
> }else if(conn instanceof RTMPConnection){
> ((RTMPConnection)conn).setMaxInactivity(TIMEOUT_TIME);
> }
> }
>
> It might not be the optimal solution but it worked for me.
> Alternatively, you can try to change these properties in the red5-
> core.xml
>
> Stijn
>
>
>
> On 3 Mar 2009, at 09:02, A Contractor wrote:
>
>>
>>
>> >>> red5 red5 <red5mails at gmail.com> 03/03/2009 07:12 >>>
>>
>> I too face the similar problem..when i play the large video files
>> i.e. Closing RTMP connection...Due to much inactivity...
>>
>> is that red5 v0.8RC2 & red5 v0.8RC2 final are equal?
>>
>> Please get me the link....
>>
>> thanks
>>
>> On Thu, Feb 26, 2009 at 2:01 AM, Walter Tak <walter at waltertak.com>
>> wrote:
>> I'd suggest to upgrade to 0.8 (rc2final) before you spend ages on
>> 0.7 and finally find out it's solved in 0.8.
>>
>>
>>
>>
>> Hello,
>>
>> I am using red5 0.7 but am willing move to the latest version if that
>> is the best way to deal with this...
>>
>> I have an application derived from multithreaded application adapter
>> and sometimes the clients can cause the app to do a long sql query.
>> During a long query I lose the connection to the client because "too
>> much inactivity." I'm a little surprised I am having this issue with
>> a multi-threaded app but that is probably due to my ignorance of the
>> internals of red5 and how the connections are maintained.
>>
>> I see some email threads (about earlier versions of red5 with mixed
>> results) that suggest this is caused by missed ping activity. Are
>> these pings not being sent or received by my app b/c it is waiting on
>> a query? Is the best way to avoid this to change the timeout time in
>> the red5 properties file?
>>
>> Thank you,
>>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20090303/3662d326/attachment-0001.html>
More information about the Red5
mailing list