Re: How to set ssh-dss, 3des-cbc, diffie_hellman_group1_sha1?

2023-03-17 Thread Jon Madsen
This is not exactly what you need but something that I did to get around a similar problem: SshClient client = SshClient.setUpDefaultClient(); // Get the current default list of key exchange factories List keyExchangeFactories = client.getKeyExchangeFactories(); // Add the Diff

Re: Client support for Diffie-Hellman-group1-sha1 key exchange

2023-02-21 Thread Jon Madsen
Please disregard this issue as I have gotten it to work, and if you read this thanks for reading. Jon From: Jon Madsen Date: Tuesday, February 21, 2023 at 3:25 PM To: users@mina.apache.org Subject: Client support for Diffie-Hellman-group1-sha1 key exchange Hi all, I am working on a product

Client support for Diffie-Hellman-group1-sha1 key exchange

2023-02-21 Thread Jon Madsen
mat("Client session KEX: %s", kex.getName(; return client; } Thanks, Jon Internal

Re: re : Server Crash

2017-04-27 Thread Jon V.
I retract my previous statement after pulling the source for CircularQueue. Guess I'm used to doing illegal things in Java I forget that most code isn't like that. On Thu, Apr 27, 2017 at 8:38 AM, Jon V. wrote: > It looks like a Mina crash to me. Probably some kind of Unsafe ac

Re: re : Server Crash

2017-04-27 Thread Jon V.
It looks like a Mina crash to me. Probably some kind of Unsafe access. Can you tell us the exact version of Mina? On Thu, Apr 27, 2017 at 8:20 AM, Emmanuel Lécharny wrote: > Hi ! > > > seems like I have hard time moderating your message to the users > mailinglist... Never mind. here is a copy

Re: Why are high ports used by SFTP server implementation?

2016-02-23 Thread Jon V.
I’ll try to simplify; TCP (the protocol) can have up to 0x ports or 65535 Ports only need to be reserved for server services and outbound connections. They both use the same pool size of 65535. Each OS type allocates different range for user-space applications. For linux its around 32768 po

Re: one question with max connections

2016-02-17 Thread Jon V.
Probably creating the connections too quickly? make the TCP backlog larger. Default is 10 I believe; I use 100 in production. On Wed, Feb 17, 2016 at 6:44 AM, Liu, Li (Nokia - CN/Hangzhou) < li@nokia.com> wrote: > Hi Mina > > I try to use Mina to handle multiple TCP’s connections > > But t

Re: Deadlock when using SslFilter and ProxyFilter together

2016-02-10 Thread Jon V.
, > sslFilter); > > return sslFilter; > > } > > > > > > Sure, with a lot of time, I could possibly rewrite the code, to swap the > positions of the filters in the filterchain. > > > > But I see little sense in it, since the code is w

Re: Deadlock when using SslFilter and ProxyFilter together

2016-02-09 Thread Jon V.
Its my understanding that Read and Write operations are thread-safe and should never cause deadlocks. (not sure why there are locks in those filters) Also, I don’t think SSL should be after Proxy. You cannot initiate an SSL session if you proxy the setup routine. What is the goal in this setup?

Re: Can we get message attempted to write

2016-02-02 Thread Jon V.
After the message is converted to ByteBuffer is the WriteRequest triggered or it a child WriteRequest created for the ByteBuffer? That would define if this kind of callback would be possible. On Tue, Feb 2, 2016 at 7:35 AM, Emmanuel Lécharny wrote: > Le 02/02/16 12:10, Abhijit Bhatode a écrit :

Re: SslFilter with autoStart=false

2016-01-28 Thread Jon V.
to me more like a fundamental flow problem of filter modifications than a design issue with SSL filter. On Thu, Jan 28, 2016 at 10:45 AM, Emmanuel Lécharny wrote: > Le 28/01/16 15:37, Jon V. a écrit : > > Sorry, I hit enter and my email sent. > > > > IoFilterChain filte

Re: SslFilter with autoStart=false

2016-01-28 Thread Jon V.
orkarounds. On Thu, Jan 28, 2016 at 9:37 AM, Jon V. wrote: > Sounds to me like someone has a secondary filterchain they are trying to > prime artificially. > > So then maybe this isn’t necessary? > > > > On Thu, Jan 28, 2016 at 9:34 AM, Emmanuel Lécharny > wrote: &

Re: SslFilter with autoStart=false

2016-01-28 Thread Jon V.
Sounds to me like someone has a secondary filterchain they are trying to prime artificially. So then maybe this isn’t necessary? On Thu, Jan 28, 2016 at 9:34 AM, Emmanuel Lécharny wrote: > Le 28/01/16 15:30, Jon V. a écrit : > > In what scenario would the SSL filter be attache

Re: SslFilter with autoStart=false

2016-01-28 Thread Jon V.
In what scenario would the SSL filter be attached but the session has no filterchain On Thu, Jan 28, 2016 at 7:40 AM, Emmanuel Lécharny wrote: > Le 28/01/16 13:33, Norbert Irmer a écrit : > > Your idea, adding a method "public void initiateHandshake(IoSession > session)" to the SslFilter class,

Mina workflow

2016-01-15 Thread Jon V.
Its been a while since I’ve used Mina and I forgot how the processor model works. Can anyone confirm the diagram is correct?

Re: where is ssl filter source code?

2015-12-22 Thread Jon V.
Here https://git1-us-west.apache.org/repos/asf?p=mina.git;a=summary You can choose which HEAD you want. trunk is 2 years old so I wouldn’t look at that. Here is the “2.0” HEAD https://git1-us-west.apache.org/repos/asf?p=mina.git;a=tree;h=refs/heads/2.0;hb=refs/heads/2.0 Its 4 days old. On Tue,

Re: where is ssl filter source code?

2015-12-22 Thread Jon V.
Here is the browser for the filters package https://git1-us-west.apache.org/repos/asf?p=mina.git;a=tree;f=mina-core/src/main/java/org/apache/mina/filter;hb=d0263e8a00cf6e60d18317d1e8899554c53083bc On Tue, Dec 22, 2015 at 4:46 AM, Emmanuel Lécharny wrote: > Le 22/12/15 05:30, Vic Cekvenich a écr

Re: ProtocolCodecFilter threading model

2015-10-07 Thread Jon V.
ot; wrote: > Hi, Jon! > Thak you for information about IoProcessors. If there are already > cores*2 IoProcessors, than things change much. It seems, that executor > filter is useless at all if a server doesn't perform any waiting/sleeping, > etc. It seems, that executor filter

Re: ProtocolCodecFilter threading model

2015-10-07 Thread Jon V.
lel? > 7 окт. 2015 г. 10:18 PM пользователь "Jon V." > написал: > > > You also cannot process a linear buffer simultaneously. TCP is linear > and > > reading the messages must be linear. After you have a list of messages > > then you may execute them in parallel

Re: ProtocolCodecFilter threading model

2015-10-07 Thread Jon V.
You also cannot process a linear buffer simultaneously. TCP is linear and reading the messages must be linear. After you have a list of messages then you may execute them in parallel but the line decoding of the buffer must be single threaded. The decoder operates on an inbound buffer and multi-

Re: Memory leak

2015-09-01 Thread Jon V.
Emmanuel is correct. You have to manage that backlog. Mina provides write request handlers so you get notifications when the data is written. If you detect that data isn't writing you should take steps to mitigate sending data to that session. On Sep 1, 2015 12:01 PM, "Emmanuel Lécharny" wrote: >

Re: EOFException when file gets modified during sendFile

2015-05-15 Thread Jon V.
Maybe the file should be locked until send is complete. Really shouldn't allow sending of a file while it is being modified. On May 15, 2015 5:31 PM, "Charlie Kim" wrote: > Hi there, I'm seeing EOFException when file gets modified during sendFile > command. > Here is the scenario. Client receiv

Re: MINA as a WEB Service

2015-05-13 Thread Jon V.
Mina is a networking framework for building web services. It is not a web service itself. On May 13, 2015 5:50 AM, "Jochen Seliger" wrote: > Hi, > I need a functionality to let qasi any mashine, running our > client-programm, to > connect to a central instance. > Therefor the HTTP Update header

Re: How to debug ghost sessions

2015-05-11 Thread Jon V.
Ghost sessions are a result of a broken TCP connection. It is possible that the client lost internet connection and was unable to correctly terminate the TCP session. Therefore, your application will never get a TCP close until the default idleness timer invokes or you use Mina's internal idlenes

Re: How to Detect Wired Network Disconnect in Apache Mina

2015-04-17 Thread Jon V.
that we can take decision. > > On Fri, Apr 17, 2015 at 6:00 PM, Jon V. wrote: > > > Write and read is only the real way to detect disconnect. Sockets can be > > valid and live on after a disconnect and reconnect. > > > > When a network cable is removed, you may g

Re: How to Detect Wired Network Disconnect in Apache Mina

2015-04-17 Thread Jon V.
Write and read is only the real way to detect disconnect. Sockets can be valid and live on after a disconnect and reconnect. When a network cable is removed, you may get a disconnect after the OS internal timeout. Otherwise you have to rely on your own idleness timer. On Apr 17, 2015 6:28 AM, "Ni

Re: Virtual IP Load Balancer

2015-03-25 Thread Jon V.
the job. > > On Wed, Mar 25, 2015 at 1:06 PM Jon V. wrote: > > > This is not the correct place to discuss this. Maybe try stack overflow. > > > > On Wed, Mar 25, 2015 at 4:59 AM, rkreddy.bogati < > rkreddy.bog...@gmail.com> > > wrote: > > > > >

Re: Virtual IP Load Balancer

2015-03-25 Thread Jon V.
This is not the correct place to discuss this. Maybe try stack overflow. On Wed, Mar 25, 2015 at 4:59 AM, rkreddy.bogati wrote: > @Ukslim, Thanks for your response. > > Let me explain the details requirement. > > I have one IP Address (that is not connected to any physical machine), > which >

Re: question

2015-03-24 Thread Jon V.
This isn't necessarily something that would be the responsibility of Mina. Just as you developed your own game server, you will have to add any kind of clustering features yourself. On Mar 24, 2015 11:16 AM, "antares" wrote: > Hi Folks, > > i created a game server and i would like to have a sugge

Re: Mina server not responsive

2015-03-22 Thread Jon V.
Glad you figured it out. On Mar 22, 2015 6:39 PM, "Jianbao (Jim) Tao" wrote: > Thank you, Jon and Emmanuel. I tried adding a logging filter and all. I > finally found the root cause by taking a thread dump. It was due to a > deadlock in our business logic code. > > I tri

Re: Session Sharing between applications

2015-03-21 Thread Jon V.
I am going to take a little leap and say that Java is probably not the best to develop a proxy application. Mina's design is also more optimized for request response type situations and may introduce some unnecessary latency into the proxy. Otherwise, it is just as Emmanuel said. You write all th

Re: Mina server not responsive

2015-03-21 Thread Jon V.
We are going to need a lot more. I would first use visual VM and figure if any threads are running 100% and grab stack traces. On Mar 21, 2015 3:03 PM, "Jianbao (Jim) Tao" wrote: > Hi, > > I am facing a issue as follows. > > We have a proxy server developed with Mina. Recently after some changes

Re: Problem with closing sessions after exception

2015-02-09 Thread Jon V.
How are you interrupting during SSL handshake? On Feb 9, 2015 4:04 AM, "Ing. Jan Kaláb" wrote: > The version is 2.0.9. > > I can't provide you the whole code, only what's in the question on > StackOverflow, but the JMeter plan is attached. Maybe if you ask more > precisly about part of the code y

Re: Is IoSession.write() thread-safe in mina trunk branch?

2014-08-16 Thread Jon V.
It may be a flaw in the redesign. The trunk is an entire redesign of Mina. On Aug 16, 2014 4:04 PM, "Kai ZHANG" wrote: > If the write() should be synchronized by myself, why the API documentation > says this class is thread safe? > > I added my application details and the explanations in another

Re: Is IoSession.write() thread-safe in mina trunk branch?

2014-08-16 Thread Jon V.
y two threads without any > synchronization mechanism. > > On 08/17/2014 02:59 AM, Jon V. wrote: > >> It is my understanding that the write is occurring on the the selector >> loop. This occurs on the same selector loop every time and therefore is >> thread-safe. When yo

Re: Is IoSession.write() thread-safe in mina trunk branch?

2014-08-16 Thread Jon V.
It is my understanding that the write is occurring on the the selector loop. This occurs on the same selector loop every time and therefore is thread-safe. When you call write the params are encapsulated and triggered for execution on the select loop. It does not occur in the same stack as the call

Re: Performance issue - NioSocketAcceptor

2014-08-15 Thread Jon V.
> Le 15/08/14 16:06, Jon V. a écrit : > > If you receive 5 bytes then Mina will trigger through the schedule > > mechanism which means it gets queued and a thread wakes up to process > that. > > That wakeup is one of the most expensive parts of the process. How often >

Re: Performance issue - NioSocketAcceptor

2014-08-15 Thread Jon V.
for the parsers it is much more simple and cost effective to buffer the XML before processing it. On Aug 15, 2014 3:29 AM, "Emmanuel Lécharny" wrote: > Le 15/08/14 08:15, Jon V. a écrit : > > Yes, if the iohandle is blocking the execution then that would obviously > do >

Re: Performance issue - NioSocketAcceptor

2014-08-14 Thread Jon V.
number of messages. On Aug 15, 2014 2:00 AM, "Emmanuel Lécharny" wrote: > Le 15/08/14 05:41, Jon V. a écrit : > > Emmanuel, is there a line test tool for Mina? I ask because seems like > the > > Jedi Jin here has a throughput problem. > > Something like > > http:

Re: Performance issue - NioSocketAcceptor

2014-08-14 Thread Jon V.
Emmanuel, is there a line test tool for Mina? I ask because seems like the Jedi Jin here has a throughput problem. Jin, Have you tried benchmarking your code directly? In all reality I process 30k sockets and 500mb/s using raw TCP in java so if there is a problem it is either your code or Mina. H

Re: Help with so many concurrent connections

2014-07-15 Thread Jon V.
This isn't really a Mina question. Seems like you need to work on some tests to find out what parts are the bottleneck. I don't know why a buffer would mean faster inserts. Buffers are good to offload the tasks to other threads and that has its own performance advantages depending on how your dat

Re: sshd - async interface

2014-04-19 Thread Jon V.
You could simply try the write or read on an interval. There are a few scenarios where aio is use able without NIO. Primarily when you use blocking read and scheduled non blocking writes. On Apr 19, 2014 9:58 AM, "Alon Bar-Lev" wrote: > On Sat, Apr 19, 2014 at 3:52 PM, Jon V. wrote

Re: sshd - async interface

2014-04-19 Thread Jon V.
NIO controls and deals with the selectors. Async IO is a part of that but is not the same thing. Async io means that if a write cannot be fully flushed. It will not block until it can be. NIO provides us the events to tell us that data is available in the socket. On Apr 19, 2014 4:56 AM, "Alon Bar-

Re: Moving from Mina2 to Mina3

2014-04-13 Thread Jon V.
I am probably not the best person to comment on this. It is my understanding that mina3 is still in active development. There is no official release. You shouldn't build production apps with it unless you are willing to build and go through an extensive testing process. Hi guys, I would like to m

Re: [Support] Mina 2.0.7 improve reliability when there are network error

2014-03-31 Thread Jon V.
TCP works perfectly. If there is a problem. It is elsewhere. Implementing message delivery confirmation is a part of a higher level protocol. If the network/TCP is connected; it will be delivered. In what environment are you expecting TCP sockets to close all the time? Here is what happening reg

Re: How to write byte[] to an IoSession

2014-03-12 Thread Jon V.
You are converting an incoming iobuffer to byte[] you need to write an iobuffer. On Mar 12, 2014 11:34 AM, "dinesh707" wrote: > As shown below I can read the byte[] sent from an IoSession without having > a > protocol decoder. > > IoBuffer in = (IoBuffer) message; > byte[] inBytes = in.array(); >

Re: Status on DIRMINA-934 and 3.0 relase

2014-03-11 Thread Jon V.
not volatile and must be synchronized to ensure that the positioning is correct. Semaphore's current count is also non volatile; that is how it quickly decides in the tryLock() phase. To recap, it may work but should be tested extensively. -Jon On Mon, Mar 10, 2014 at 7:26 PM, Mondain

Re: Separate Threads for sending and receiving

2014-02-22 Thread Jon V.
Instead of relying on logging; I would setup a stress test to measure completed commands/s and use that as a foundation for trying other procedures. On Sat, Feb 22, 2014 at 7:03 AM, Max Larsson wrote: > Hi, > > >> > >> > >> In my IoHandler i receive the desired message and write out the res

Re: handling a slow client

2013-11-25 Thread Jon V.
You should never assume that all of your data is available. If you work with this, you can handle any speed client. I test everything against simulated invalid packets and random latency. On Nov 25, 2013 9:38 AM, "Andrew Pennebaker" wrote: > This is a good edge case to consider, as some script ki

Re: Can MINA create proxy servers?

2013-11-22 Thread Jon V.
I was thinking about the Http lib. I didn't remember a proxy in there. Thanks. On Nov 22, 2013 3:32 PM, "Emmanuel Lécharny" wrote: > Le 11/22/13 9:20 PM, Jon V. a écrit : > > I imagine you could build a proxy in Mina. However I don't believe any > > prebuilt p

Re: Can MINA create proxy servers?

2013-11-22 Thread Jon V.
crawler. Would be nice to spin up proxy servers, to test proxy > support in the crawler. > > > On Fri, Nov 22, 2013 at 12:02 PM, Jon V. wrote: > > > I don't see why not. I wouldn't recommend it however. > > > > Proxy servers need to be more bare metal. >

Re: Can MINA create proxy servers?

2013-11-22 Thread Jon V.
I don't see why not. I wouldn't recommend it however. Proxy servers need to be more bare metal. Nginx has a proxy module you should look at. On Nov 22, 2013 11:59 AM, "Andrew Pennebaker" wrote: > That would be cool! > > -- > Cheers, > > Andrew Pennebaker > apenneba...@42six.com >

Re: IoSession write method thread safe?

2013-11-21 Thread Jon V.
I would imagine this to be true. The normal use case is request and response. Additional synchronization makes the code run slower in that scenario. I would suggest synchronizing critical paths. I have to synchronize write paths for the same reason where one input may write to dozens of other sock

Re: IoSession write method thread safe?

2013-11-21 Thread Jon V.
e > for writing, is brutal. I am thinking on including a writing lock as a > session attribute in each session that will be initialized on > sessionCreated events. > > Cheers! > Alex > > > On Thu, Nov 21, 2013 at 4:28 PM, Jon V. wrote: > > > I would imag

Re: Unable to open more than 1000 ports in Mina Client

2013-09-30 Thread Jon V.
5-10 at a time; I am sure it would work normally. On Mon, Sep 30, 2013 at 11:59 AM, Jon V. wrote: > I've seen this before and it was tightly bound to the Acceptor backlog for > me. My desktop is Win 2008 r2 and I can get 18,000 tcp connections in Java. > > Selectors for some re

Re: Unable to open more than 1000 ports in Mina Client

2013-09-30 Thread Jon V.
8 on Linux; there is a significant performance problem with greater than 3 on Windows. On Mon, Sep 30, 2013 at 11:54 AM, Emmanuel Lécharny wrote: > Le 9/30/13 8:52 AM, Jon V. a écrit : > > NioSocketAcceptor( number ) creates N threads. > 10 is a problem in most > > cases. Th

Re: Unable to open more than 1000 ports in Mina Client

2013-09-30 Thread Jon V.
NioSocketAcceptor( number ) creates N threads. > 10 is a problem in most cases. The default backlog for a SocketAcceptor in Java is 50. I have mine set to 200 to prevent dropped "accept" requests. Each time a socket attempts to connect it gets put in the backlog waiting for an "accept" to be ca

Re: Unable to open more than 1000 ports in Mina Client

2013-09-30 Thread Jon
Try increasing the backlog on the acceptor. Sent from my iPhone > On Sep 30, 2013, at 10:31 AM, praveen wrote: > > Hi, > > I have the same problem with the mina server. I am running on windows 2008 > with 32 cores.Once the connections is established i need to send the reply > back in 3 seconds

Re: Multithreaded UDP server vs. OrderedThreadPoolExecutor

2013-09-25 Thread Jon V.
Depends on what aspect of asynchronous you are looking for. The sockets are always async. If you have a bunch of ioprocessors then you have concurrency where more than one message can be processed at any given time. On Sep 25, 2013 6:15 AM, "Christian Hammers" wrote: > Hello > > On Tue, 24 Sep 2

Re: Multithreaded UDP server vs. OrderedThreadPoolExecutor

2013-09-24 Thread Jon V.
The first thing I would do would be to disable the executor and try again. You could be encountering some sort of deadlock. On Sep 24, 2013 12:47 PM, "Christian Hammers" wrote: > Hello > > I've written a server for a proprietary UDP protocol that needs to answer > with > exactly one packet for ev

RE: EXT :Re: Trouble with messageReceived()

2013-09-16 Thread Jon V.
or.getFilterChain().addLast("logger", new LoggingFilter()); > > But it drops messages. The SumUp example does not seem to drop messages > when I changed it to use the ObjectSerializationCodecFactory but I will > have to verify that. > > -Original Message- > From: Jo

Re: Trouble with messageReceived()

2013-09-16 Thread Jon V.
On the client you are writing a hashmap to the session. I don't see a filter which turns the hashmap into a IoBuffer? Only IoBuffer can be written to the socket directly. On Sep 16, 2013 1:12 PM, "Karrys, Michael (IS)" wrote: > I was wondering if someone could look at this and tell me what I am

Re: MINA support for WebSockets?

2013-09-04 Thread Jon
on the horizon? > > --Mark > > > On Sep 4, 2013, at 3:33 PM, Jon V. wrote: > >> The http implementation hasn't received any love lately as far as I know. >> It is not for needing a bit of work. Why not take the code and integrate it >> yourself? WebSoc

Re: MINA support for WebSockets?

2013-09-04 Thread Jon V.
The http implementation hasn't received any love lately as far as I know. It is not for needing a bit of work. Why not take the code and integrate it yourself? WebSockets are not terribly complicated. On Sep 4, 2013 11:36 AM, "Mark Phillips" wrote: > The Users and Dev list archives contain year-

Re: Send/Receive IoBuffer

2013-09-03 Thread Jon V.
> -Mensagem original- > De: Jon V. [mailto:sybersn...@gmail.com] > Enviada em: segunda-feira, 2 de setembro de 2013 23:54 > Para: users@mina.apache.org > Assunto: Re: Send/Receive IoBuffer > > This is better: I am not going to use the correct API but you can get th

Re: Send/Receive IoBuffer

2013-09-02 Thread Jon V.
Fix if( buffering == null ) { buffering = ByteBuffer.allocate( some size ); session.setAtribute( SOME_PROPERTY_BUFFER_NAME, buffering ); } On Mon, Sep 2, 2013 at 10:54 PM, Jon V. wrote: > This is better: I am not going to use the correct API but you can get the > idea. > > Cre

Re: Send/Receive IoBuffer

2013-09-02 Thread Jon V.
"return" if you don't have enough data. On Mon, Sep 2, 2013 at 10:42 PM, Jon V. wrote: > > > > On Mon, Sep 2, 2013 at 10:21 PM, Luciano Coelho > wrote: > >> Yeah Jon, you're right about flush, the wrong thing is really the >> IoBuffer. >>

Re: Send/Receive IoBuffer

2013-09-02 Thread Jon V.
On Mon, Sep 2, 2013 at 10:21 PM, Luciano Coelho wrote: > Yeah Jon, you're right about flush, the wrong thing is really the IoBuffer. > I put the: session.getConfig().setReadBufferSize(16*1024), on connector as > you told me. > > I changed now for what you answered me, like t

Re: Send/Receive IoBuffer

2013-09-02 Thread Jon V.
On Mon, Sep 2, 2013 at 5:37 PM, Luciano Coelho wrote: > Hello everybody. > > > > I'm learning how to use Mina and my questions are: > > > > I solved my problem of having a answer from my server without closing the > session like this: > > > > System.out.flush(); > This really gives me an indicat

Re: Regarding DIRMINA-912

2013-08-25 Thread Jon V.
ll events waiting to be processed. > > Filter chain looks like this: > * codec > * inbound-filter (executor filter for all but WRITE events) > * write-throttle-filter (overrides filterWrite) > * outbound-filter (executor filter for WRITE events only) > On 08/23/2013 12:32 PM,

Re: Regarding DIRMINA-912

2013-08-23 Thread Jon V.
What is the use case for having different thread pools for read and write events? Writes are already scheduled one they hit the worker. Not like your write process is going to slow down an already threaded read request. On Aug 22, 2013 5:52 PM, "Mike McKnight" wrote: > I am just curious if there

Re: AW: AW: NioSocketConnector/NioSocketAcceptor

2013-08-15 Thread Jon V.
Please don't take this the wrong way. The apache Mina site is full of examples and documentation. That should be your primary source of information before asking questions on the email list. Remember, this list covers 5 different projects and your email goes out to a lot of people. I am very happ

Re: Creating a new instance of an IoHandler for each connection?

2013-08-08 Thread Jon
This is against the design. You could add this into the source pretty easy and build a custom version of Mina. Sent from my iPhone On Aug 8, 2013, at 12:36 AM, Nick_ wrote: > I can't seem to find a way to allow each connection to have it's own handler > > > > -- > View this message in co

Re: User authentication

2013-08-07 Thread Jon V.
r the handler will basically be in messageReceived? > And the state machine manages sessionCreated()/**sessionOpened()? > > > Hunter > On 8/7/2013 3:29 PM, Jon V. wrote: > >> That is basically how it is done. >> >> Io->packet processor->state machine->han

Re: User authentication

2013-08-07 Thread Jon V.
Millen" wrote: > So that is actually the solution we had before, but the state machine was > in an authentication filter, we had a lot of trouble transitioning from "ok > now I am done authenticating, I want to be in my IoHandler now" > > Hunter > On 8/7/2013 3:03 PM,

Re: User authentication

2013-08-07 Thread Jon
of the commands that a user could enter. > > Hunter > On 8/7/2013 1:13 PM, Jon wrote: >> You must be building some sort of communication format for it. >> >> Sent from my iPhone >> >> On Aug 7, 2013, at 1:06 PM, Hunter McMillen wrote: >> >>> We&

Re: User authentication

2013-08-07 Thread Jon
ers > at a time. > > Hunter > On 8/7/2013 12:02 PM, Jon wrote: >> This is more of a protocol implementation than a networking question. What >> kind of protocol are you implementing. >> >> Sent from my iPhone >> >> On Aug 7, 2013, at 11:34

Re: User authentication

2013-08-07 Thread Jon
This is more of a protocol implementation than a networking question. What kind of protocol are you implementing. Sent from my iPhone On Aug 7, 2013, at 11:34 AM, Hunter McMillen wrote: > We actually won't need anything as complex as LDAP, just a simple DB hash + > salt lookup. > > Hunter

Re: Using an Authentication Filter and IoHandlerAdapter

2013-08-02 Thread Jon V.
The major problem with any kind of ordering is the blocking and major performance problems relative to the load. On Aug 1, 2013 9:55 PM, "Ashish" wrote: > On Fri, Aug 2, 2013 at 7:15 AM, Jon V. wrote: > > > To my knowledge the executor filter does not guarantee any kind of

Re: Using an Authentication Filter and IoHandlerAdapter

2013-08-02 Thread Jon V.
emachine), we simply want to pass that to our handler. > > Thanks. > Hunter > > On 8/1/13 9:54 PM, Ashish wrote: > > 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. > >>

Re: Using an Authentication Filter and IoHandlerAdapter

2013-08-01 Thread Jon V.
; can post the code for these also, I just didn't want to overload the > thread. > > Thanks. > Hunter > On 8/1/13 5:47 PM, Jon wrote: > > You are not using an executor filter right? You have to implement > locking during the authentication phase if you are using thread s

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

RE: Does MINA 2.0.4 supports IPV6

2013-07-31 Thread Jon V.
gt; Thanks And Regards, > Nitin Phuria > > -Original Message- > From: Jon V. [mailto:sybersn...@gmail.com] > Sent: Saturday, July 27, 2013 12:27 AM > To: users@mina.apache.org; nit...@integramicro.com > Subject: Re: Does MINA 2.0.4 supports IPV6 > > Are you using wild

Re: Does MINA 2.0.4 supports IPV6

2013-07-26 Thread Jon V.
Are you using wildcards in the blacklist filter? You could build your own string and pattern based blacklist filter for IPV6 in under 30 minutes. On Fri, Jul 26, 2013 at 3:10 AM, Nitin Phuria wrote: > The issue is registered in JIRA see the below link. > https://issues.apache.org/jira/browse/DI

Rules

2013-07-23 Thread Jon V.
To the MINA mailing list owner. Can we setup a rule requiring the project name in the subject line? e.g. [MINA] , [SSHD]

Re: Does MINA 2.0.4 supports IPV6

2013-07-19 Thread Jon
Just create an ipv6 socket address object for use when binding the socket. It is really no different than v4 Sent from my iPad On Jul 19, 2013, at 12:06 AM, "Nitin Phuria" wrote: > Dear All, > > > >I want following information about MINA Framework Version 2.0.4 > as we have crea

Re: Blocking IO tasks

2013-06-28 Thread Jon
You could have used the executor filter to do this. All depends on the lengths you want to go through for difference performance profiles. Sent from my iPhone On Jun 28, 2013, at 1:11 PM, Zlatko Josic wrote: > Hi, > > We created server based on MINA framework. Every request has logic that >

Re: SSL Server Allows Anonymous Authentication Vulnerability

2013-05-27 Thread Jon
Someone can correct me if I am wrong but this probably happens with a self signed certificate. They are anonymous by nature because no certificate authority will certify it. Sent from my iPad On May 24, 2013, at 8:52 AM, "Rajiv Kasera" wrote: > Hi, > > I am using SSLFilter for enabling SSL

Re: XML Protocol with initial ASCII handshake

2013-04-27 Thread Jon V.
1) You obtain the next filter and call messageReceived there. Mina will automatically wrap the last filter and call the handler. 2) nextFilter.filterWrite(session, new DefaultWriteRequest(out, writeRequest.getFuture(), writeRequest.getDestination())); On Fri, Apr 26, 2013 at 2:45 PM, Max Larsson

Re: XML Protocol with initial ASCII handshake

2013-04-17 Thread Jon V
Data-->Filters-->Handler Filters are pretty much the same as a handler just they can be stacked horizontally and there is only one handler. -- Jon V Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Wednesday, April 17, 2013 at 1:56 PM, Max Larsson wrote: > Hi

Re: XML Protocol with initial ASCII handshake

2013-04-17 Thread Jon
This is simple. Two filters. One for handshake one for protocol. After handshake is done. Disable the first through some session variable. Sent from my iPhone On Apr 17, 2013, at 11:51 AM, Emmanuel Lécharny wrote: > Le 4/17/13 5:17 PM, Max Larsson a écrit : >> Hi, > Hi, >> >> I'm using MINA

Re: changes the bytes of transmitting byte Array through apache camel mina UDP

2013-03-01 Thread Jon V
+1 for great analogy. On Friday, March 1, 2013 at 9:12 AM, Emmanuel Lécharny wrote: > Le 3/1/13 9:50 AM, Tejas Patel a écrit : > > Problem : > > > > When i transmit the byte array of [56, 34, 0, 4, -79, 1] from one device to > > another device on using Apache Camel Mina UDP endpoint, at rece

Re: When will Mina 2.0.8 generally available?

2013-02-01 Thread Jon
http://www.apache.org/dyn/closer.cgi/mina/mina/2.0.7/apache-mina-2.0.7-src.zip Sent from my iPhone On Feb 1, 2013, at 11:22 AM, Lei Ma wrote: > Thank you Jon. > > How do I download the mina-http project? > > I git cloned the following and the http encoder/decoder doesn't

Re: When will Mina 2.0.8 generally available?

2013-02-01 Thread Jon
Basic http support is in the Mina-http project. You have to download the sources and build the library. Sent from my iPhone On Feb 1, 2013, at 9:59 AM, Lei Ma wrote: > I need it to support HTTP. > > Thanks a lot. > > Lei > > -Original Message- > From: Emmanuel Lécharny [mailto:elec

Fw: Session Closed

2013-01-18 Thread Jon V
I'm looking for how Mina is determining a close from NIO. Since NIO does not have any direct method to detect closure.(without calling write/read and getting a -1) > > On Friday, January 18, 2013 at 9:37 AM, Emmanuel Lécharny wrote: > > > Le 1/18/13 2:

Session Closed

2013-01-18 Thread Jon V
Emmanuel, I am trying to find out how Mina is detecting Session closures for 2.0.7. Source searches do not seem to help. Can you point me in the right direction? -- Jon V

Re: Patch for IoBuffer management in IoProcessor 2.0.7

2013-01-03 Thread Jon V.
https://issues.apache.org/jira/browse/DIRMINA-929 On Thu, Jan 3, 2013 at 3:24 PM, Arnaud bourree wrote: > http://issues.apache.org/jira/browse/DIRMINA > > 2013/1/3 Jon V. : > > JIRA location? > > > > On Thu, Jan 3, 2013 at 11:35 AM, Emmanuel Lécharny >wrote: > &

Re: Mina Core 2.0.7 build fails from source zip

2013-01-03 Thread Jon V.
On Thu, Jan 3, 2013 at 11:37 AM, Emmanuel Lécharny wrote: > Le 1/3/13 4:50 PM, Jon V. a écrit : > > I am trying to patch a bug in the IoBuffer caching and it won't build > > unless I remove the tests from the pom.xml > > Hi, > > can you provide a bit more info

Re: Patch for IoBuffer management in IoProcessor 2.0.7

2013-01-03 Thread Jon V.
JIRA location? On Thu, Jan 3, 2013 at 11:35 AM, Emmanuel Lécharny wrote: > Le 1/3/13 5:12 PM, Jon V. a écrit : > > Sorry that this is the entire file. I don't have it checked out with > > subversion to create typical patches. > > > > Basically, there are t

Patch for IoBuffer management in IoProcessor 2.0.7

2013-01-03 Thread Jon V.
Sorry that this is the entire file. I don't have it checked out with subversion to create typical patches. Basically, there are two places where I call free() to release the IoBuffer memory. The CachedBufferAllocator is totally broken but I am able to get 100% recycled Buffers with a custom impl

  1   2   >