[Red5devs] Scope.connect
Steven Gong
steven.gong at gmail.com
Fri May 9 16:28:19 PDT 2008
Hi Saman,
This impact you remove this recursive block is that you can't manage the
connection logic from the parent scopes (as well as record the connection
stats in them).
In some applications, the handlers will be registered into the parent scope
to judge whether the client has the right to connect. For example, it can
control some clients can't connect to scope "lobby1" so that all these
clients that connect to "lobby1/roomX" will fail. If that is not what you
need, you can just drop this recursion. Please tell us any other issues you
find with this change. Thank you!
On Sat, May 10, 2008 at 12:49 AM, Saman Ghodsian <Saman.Ghodsian at alea.ca>
wrote:
> Hi All,
>
>
>
> We're implementing a solution based on red5 and had a question on the
> Scope.connect method, we're seeing some unexpected behavior due to the fact
> that when a connection is established to a scope, all the parent scopes are
> also being connected.
>
>
>
> */
>
> *public* *boolean* connect(IConnection conn, Object[] params) {
>
> // logger.debug("Has connection: {}", (conn != null));
>
> // logger.debug("Has handler: {}", (handler != null));
>
> // logger.debug("Has parent: {}", (parent != null));
>
> *if* (hasParent() && !parent.connect(conn, params)) {
>
> *return* *false*;
>
> }
>
>
>
> We'd like to comment out the recursive connection, the question is what
> would be the impact if any of doing so….
>
>
>
> Thanks and great work!!
>
>
>
> Saman
>
>
>
>
>
> *From:* red5devs-bounces at osflash.org [mailto:red5devs-bounces at osflash.org]
> *On Behalf Of *Mondain
> *Sent:* Tuesday, May 06, 2008 4:50 PM
> *To:* red5devs at osflash.org
> *Subject:* Re: [Red5devs] Socket policy server error
>
>
>
> Adobe picked the port.. :) and yes it is configurable. Go to
> red5.properties and update "policy.port".
>
> Paul
>
> On Tue, May 6, 2008 at 1:48 PM, Daniel Rossi <spam at electroteque.org>
> wrote:
>
>
> On 07/05/2008, at 6:29 AM, Thijs Triemstra | Collab wrote:
>
> > Getting this error when trying to start Red5, latest trunk:
> >
> > [ERROR] [main] org.red5.server.net.policy.SocketPolicyHandler -
> > Exception initializing socket policy server
> > java.net.SocketException: Permission denied
> > at sun.nio.ch.Net.bind(Native Method)
> > at
> > sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:
> > 119)
> > at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
> > at
> > org
> > .apache
> > .mina
> > .transport.socket.nio.SocketAcceptor.registerNew(SocketAcceptor.java:
> > 363)
> > at org.apache.mina.transport.socket.nio.SocketAcceptor.access
> > $800(SocketAcceptor.java:55)
> > at org.apache.mina.transport.socket.nio.SocketAcceptor
> > $Worker.run(SocketAcceptor.java:222)
> > at
> > org
> > .apache
> > .mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
> > at java.lang.Thread.run(Thread.java:595)
> >
> > I guess this means red5 now has to be started as root because it
> > wants to use port 843? Is it possible to configure this port
> > somewhere?
> >
>
> Yeh this is what happens when launching from eclipse. With the default
> port it needs to be launched as root. Or changed in red5.properties.
>
> _______________________________________________
> Red5devs mailing list
> Red5devs at osflash.org
> http://osflash.org/mailman/listinfo/red5devs_osflash.org
>
>
>
>
> --
> It is difficult to free fools from the chains they revere. - Voltaire
>
>
> *Notice* – The information in this e-mail is confidential and may be
> legally privileged. It is intended solely for the recipient(s) named
> above. If you have received this message in error, or are not a named
> recipient, please notify the sender immediately at + 1 (604) 685-7619 and
> please delete this e-mail message from your computer. Thank you.
>
> _______________________________________________
> Red5devs mailing list
> Red5devs at osflash.org
> http://osflash.org/mailman/listinfo/red5devs_osflash.org
>
>
--
Best Regards
Steven Gong
InfraRed5 Red5 Consultant: http://www.infrared5.com, steven at infrared5.com
Red5 Developer: http://osflash.org/red5,
http://jira.red5.org/confluence/display/~steven/Home
Javaflash Project Founder and Maintainer: http://osflash.org/javaflash
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5devs_osflash.org/attachments/20080510/8e3c6622/attachment.html
More information about the Red5devs
mailing list