Re: Using an Authentication Filter and IoHandlerAdapter

2013-08-01 Thread Hunter McMillen
Ok I think I understand the ordering now, we probably don't need an Executor. Our main issue is still how to link the state machine with our IoHandlerAdaptor. As of right now, after a user is authenticated (by the statemachine), the sessionIdle() event of the statemachine calls sessionOpened of ou

Re: Using an Authentication Filter and IoHandlerAdapter

2013-08-01 Thread Ashish
On Fri, Aug 2, 2013 at 7:15 AM, Jon V. wrote: > To my knowledge the executor filter does not guarantee any kind of order. > This means that you should implement the authentication phase before the > executor. > This is correct, with Executor filter ordering is not guaranteed. Do you need an exec

Re: Using an Authentication Filter and IoHandlerAdapter

2013-08-01 Thread Jon V.
To my knowledge the executor filter does not guarantee any kind of order. This means that you should implement the authentication phase before the executor. Io->prorocol->authentication->executor->handler You cannot lock on out of order messaging without a queue and attempt to re-order the messag

Re: Using an Authentication Filter and IoHandlerAdapter

2013-08-01 Thread Hunter McMillen
Sorry, the code is probably more useful to see, here is the entry point to our application: acceptor = new NioSocketAcceptor( Runtime.getRuntime().availableProcessors() ); acceptor.getFilterChain().addLast("executor", new ExecutorFilter( Executors.newCachedThreadPool())); a

Re: [Apache SSHD] Default value for max-concurrent-sessions

2013-08-01 Thread Guillaume Nodet
There's no default value, meaning by default, a user is not limited in the number of sessions it creates. There's no global maximum number of sessions right now. 2013/8/1 Wright, Omari > Also, I am also wondering what the max default value of sessions is. > max-concurrent-sessions seems to perta

Re: Using an Authentication Filter and IoHandlerAdapter

2013-08-01 Thread Jon
You are not using an executor filter right? You have to implement locking during the authentication phase if you are using thread scheduling. Sent from my iPhone On Aug 1, 2013, at 5:31 PM, Hunter McMillen wrote: > Hello, > > I recently started working on a project with a friend that is a te

Using an Authentication Filter and IoHandlerAdapter

2013-08-01 Thread Hunter McMillen
Hello, I recently started working on a project with a friend that is a text-based game. We were having trouble with ReadFuture's when trying to get a username/password combination from the user so we decided to follow the state machine example from Tapedeck TCP server on Mina's homepage: htt

RE: [Apache SSHD] Default value for max-concurrent-sessions

2013-08-01 Thread Wright, Omari
Also, I am also wondering what the max default value of sessions is. max-concurrent-sessions seems to pertain to individual users. -Original Message- From: Wright, Omari [mailto:omari.wri...@solers.com] Sent: Thursday, August 01, 2013 12:21 PM To: 'users@mina.apache.org' Subject: [Apache

[Apache SSHD] Default value for max-concurrent-sessions

2013-08-01 Thread Wright, Omari
What is the default value for max-concurrent-sessions?