[Red5] Simultaneous connexions
Debian User
testpresta at laposte.net
Tue May 5 14:02:31 PDT 2009
Thanks for your advice.
If a have a lot of flash clients (1000 for example), the server wont
manage to call them 3 times per seconds !
That is why each flash client is sending updates only when the player
has moved...
I do not understand your last mail: What do you mean by "critical
positional data" ?
Andy Shaules a écrit :
> Also
>
> I have had great success using this method, and when the server calls
> the client, at that point he sends critical data with nc.call. The
> data returned to the server might not reach the other client in time
> if it is critical positional data.
>
>
>
> ----- Original Message -----
> *From:* Andy Shaules <mailto:bowljoman at hotmail.com>
> *To:* red5 at osflash.org <mailto:red5 at osflash.org>
> *Sent:* Tuesday, May 05, 2009 1:41 PM
> *Subject:* Re: [Red5] Simultaneous connexions
>
> I would recommend a different technique.
>
> Use a scheduled job on the server and do not use
> 'invokeOnAllConnections'. Use regular iterator of the set.
>
> This is how to do it.
>
> Your server job calls each client one by one maybe 3 times persecond.
>
> Your method on the client that gets called returns values to the
> server. Your server values are updated and then the server calls
> the next client with the updated values of you and all the other
> client values in the game.
>
> Clients are called one-by-one from the server. All info required
> by client is given in that call. All info required by server is
> returned in that call.
>
> Game 'render ticks' used to update in enterframe can be kept in
> sync between clients by only allowing so many 'enterframe' events
> per call from the server.
>
> So maybe physics are calculated closer to the same amout for each
> client. Fast pc's are not an advantage so much over slower pc's
>
> On room create make the job.
>
> On room destroy stop the job.
>
>
>
> ----- Original Message -----
> *From:* Debian User <mailto:testpresta at laposte.net>
> *To:* red5 at osflash.org <mailto:red5 at osflash.org>
> *Sent:* Tuesday, May 05, 2009 1:30 PM
> *Subject:* Re: [Red5] Simultaneous connexions
>
> I have made some checks with a snifer in order to see how much
> data needs to be send on network.
> It is not a network problem.
>
> And it does not explain why my browser is crashing...
>
> Thanks
>
> Andy Shaules a écrit :
>> what kind of internet connection do you have? that is your limit.
>>
>> You cnt test a red5 connection maximum from on consumer-level
>> modem unless you only want to know how many connections a
>> singe user can handle.
>>
>> You need to run a test from another server or from a computer
>> with a huge internet bandwidth.
>>
>>
>>
>> ----- Original Message -----
>> *From:* Debian User <mailto:testpresta at laposte.net>
>> *To:* red5 at osflash.org <mailto:red5 at osflash.org>
>> *Sent:* Tuesday, May 05, 2009 1:22 PM
>> *Subject:* Re: [Red5] Simultaneous connexions
>>
>> Can you have a look to my code:
>>
>> Here is my flash swf code:
>>
>> // initialistion
>>
>> var NetConnection nc = new NetConnection();
>> nc.addEventListener(NetStatusEvent.NET_STATUS,callback);
>> nc.connect("rtmp://myserver/myapp/room/");
>>
>> In enterframe events, i do something like this :
>>
>> nc.call("MyMethod",null,<param1>,<param2>, ...);
>>
>> <param1> and <param2> are coordonates of a player
>>
>> Here is my red5 server "MyMethod" function:
>>
>> public void MyMethod(int velocity_x,int velocity_y)
>> {
>> IConnection conn = Red5.getConnectionLocal();
>>
>> IScope scope = conn.getScope();
>> ServiceUtils.invokeOnAllConnections(scope,
>> "remote_method_on_flash_swf_client", new Object[]
>> {velocity_x, velocity_y} );
>> }
>>
>>
>>
>> So has you can see, when a flash swf client calls
>> MyMethod with some parameters, those parameters are send
>> to ALL flash swf clients connected on the scope.
>>
>> Can you tell me if a made a mistake somewhere in this code ?
>>
>> It works great if a have only 10 flash clients but
>> crashes my browser if a put more than 15 swf on a single
>> webpage (puting several swf on the same page is just for
>> testing because a do not have 10 computers at home !)
>>
>> Thanks for your help
>>
>> Mondain a écrit :
>>> Are these connections RTMP? if so how often are your
>>> attempts? I seem to remember a tool or test that someone
>>> wrote which tests this very thing in Jira... but dont
>>> quote me on that.
>>>
>>> Paul
>>>
>>> On Tue, May 5, 2009 at 12:44 PM, Debian User
>>> <testpresta at laposte.net <mailto:testpresta at laposte.net>>
>>> wrote:
>>>
>>> I have made a batch job that tries to make a lot of
>>> simultaneous connexions.
>>> Sometimes, connexions are rejected (nothing is
>>> wroten in log files but flash swf client gets an error).
>>>
>>> I think it is perhaps my batch job is to fast !
>>>
>>> Thanks
>>>
>>> Mondain a écrit :
>>>> No set limit in Red5, no. With windows based os's
>>>> you would probably not get anywhere near the
>>>> default maximum for the os which is still 65535 I
>>>> think.
>>>>
>>>> Paul
>>>>
>>>> On Tue, May 5, 2009 at 11:56 AM, Andy Shaules
>>>> <bowljoman at hotmail.com
>>>> <mailto:bowljoman at hotmail.com>> wrote:
>>>>
>>>> only by bandwidth and cpu resources.
>>>>
>>>>
>>>> ----- Original Message ----- From: "Debian
>>>> User" <testpresta at laposte.net
>>>> <mailto:testpresta at laposte.net>>
>>>> To: <red5 at osflash.org <mailto:red5 at osflash.org>>
>>>> Sent: Tuesday, May 05, 2009 11:55 AM
>>>> Subject: [Red5] Simultaneous connexions
>>>>
>>>>
>>>>
>>>> Hello
>>>>
>>>> I there a limit of simultaneous connexions
>>>> in red 5 server ?
>>>>
>>>> Thanks
>>>>
>>>>
>>>> _______________________________________________
>>>> Red5 mailing list
>>>> Red5 at osflash.org <mailto:Red5 at osflash.org>
>>>> http://osflash.org/mailman/listinfo/red5_osflashorg
>>>> <http://osflash.org/mailman/listinfo/red5_osflash.org>
>>>>
>>>>
>>>> _______________________________________________
>>>> Red5 mailing list
>>>> Red5 at osflash.org <mailto:Red5 at osflash.org>
>>>> http://osflash.org/mailman/listinfo/red5_osflashorg
>>>> <http://osflash.org/mailman/listinfo/red5_osflash.org>
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> http://gregoire.org/
>>>> http://osflash.org/red5
>>>> ------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Red5 mailing list Red5 at osflash.org
>>>> <mailto:Red5 at osflash.org>
>>>> http://osflash.org/mailman/listinfo/red5_osflashorg
>>>> <http://osflash.org/mailman/listinfo/red5_osflash.org>
>>>
>>>
>>> _______________________________________________
>>> Red5 mailing list
>>> Red5 at osflash.org <mailto:Red5 at osflash.org>
>>> http://osflash.org/mailman/listinfo/red5_osflashorg
>>> <http://osflash.org/mailman/listinfo/red5_osflash.org>
>>>
>>>
>>>
>>>
>>> --
>>> http://gregoire.org/
>>> http://osflash.org/red5
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Red5 mailing list
>>> Red5 at osflash.org
>>> http://osflash.org/mailman/listinfo/red5_osflashorg
>>>
>>
>> ------------------------------------------------------------------------
>> _______________________________________________
>> 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
>>
>
> ------------------------------------------------------------------------
> _______________________________________________
> 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
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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/20090505/8e16d53a/attachment-0001.html>
More information about the Red5
mailing list