Re: How could I set thread pool for IoServices and ExecutorFilters?

2007-06-07 Thread Messi Chan
Thx, Trustin. Now I have an other newbie question. It's about the integrality of the message sent by socket. When I used TCP connection, does the message been ensured its integrality. Is that to say, the message won't been cut down or changed during it's passing through internet? need I valid

Re: Close ioSession

2007-06-07 Thread Trustin Lee
On 6/7/07, Jannie Pieterse <[EMAIL PROTECTED]> wrote: The Client closes the connection. The server is a jabber server and i have no control there. I am only doing the client side. It becomes a problem if you close the connection every time you send a message. Is there any keep-alive mode? T

Re: How could I set thread pool for IoServices and ExecutorFilters?

2007-06-07 Thread Trustin Lee
On 6/7/07, Messi Chan <[EMAIL PROTECTED]> wrote: Hi, Trustin, thx for your reply. According to your advice, I modify those codes below: ExecutorService executor1 = Executors.newCachedThreadPool(); SocketAcceptor acceptor = new SocketAcceptor(executor1); SocketAcceptorConfig config = (SocketAcc

Re: Problem with messages.

2007-06-07 Thread Trustin Lee
On 6/8/07, peter royal <[EMAIL PROTECTED]> wrote: On Jun 7, 2007, at 9:11 AM, ravinder singh wrote: > I am using MINA 1.1 to write a client-server application but struck > with > some message issues. The problem is as follows: > > A client connects to my server and sends a message to it, then, >

Re: Why only one ProtocolCodecFilter per chain

2007-06-07 Thread Trustin Lee
On 6/8/07, peter royal <[EMAIL PROTECTED]> wrote: On Jun 7, 2007, at 8:37 AM, Chris Audley wrote: > Why does MINA limit one ProtocolCodecFilter in an IoFilterChain? you can only go from ByteBuffer -> non-ByteBuffer once :) A decoder could output ByteBuffer again and let it decoded later in the

[jira] Updated: (DIRMINA-385) SSLFilter starts writing to session before filter chain is complete

2007-06-07 Thread Chris Audley (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Audley updated DIRMINA-385: - Attachment: SSLFilter-HEAD.patch This is similar to my patch for 1.1.0 but it is against HEAD.

[jira] Updated: (DIRMINA-385) SSLFilter starts writing to session before filter chain is complete

2007-06-07 Thread Chris Audley (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Audley updated DIRMINA-385: - Attachment: SSLFilter-1.1.0.patch This is a patch against the 1.1.0 release. I'm currently usin

[jira] Created: (DIRMINA-385) SSLFilter starts writing to session before filter chain is complete

2007-06-07 Thread Chris Audley (JIRA)
SSLFilter starts writing to session before filter chain is complete --- Key: DIRMINA-385 URL: https://issues.apache.org/jira/browse/DIRMINA-385 Project: MINA Issue Type: Bug

Re: DefaultIoFuture - memory problem

2007-06-07 Thread Haviv
Thanks - it did help.. On my performance test it cut the number of ArrayList creation(from DefaultIoFuture) from several millions to zero. Trustin Lee wrote: > > On 5/16/07, Trustin Lee <[EMAIL PROTECTED]> wrote: >> On 5/16/07, peter royal <[EMAIL PROTECTED]> wrote: >> > On May 15, 2007, at 2:1

Re: Why only one ProtocolCodecFilter per chain

2007-06-07 Thread peter royal
On Jun 7, 2007, at 8:37 AM, Chris Audley wrote: Why does MINA limit one ProtocolCodecFilter in an IoFilterChain? you can only go from ByteBuffer -> non-ByteBuffer once :) This seems to be an unnecessary limitation. What if I want to use a series of codecs in order to build more complicated

Re: Problem with messages.

2007-06-07 Thread peter royal
On Jun 7, 2007, at 9:11 AM, ravinder singh wrote: I am using MINA 1.1 to write a client-server application but struck with some message issues. The problem is as follows: A client connects to my server and sends a message to it, then, messageReceived of myHandler class (which extends IoHandler

Problem with messages.

2007-06-07 Thread ravinder singh
Hi all, I am using MINA 1.1 to write a client-server application but struck with some message issues. The problem is as follows: A client connects to my server and sends a message to it, then, messageReceived of myHandler class (which extends IoHandlerAdapter) should get called, this is working

Re: My Mina server got hung!

2007-06-07 Thread Paul Chen
Sure, will remember to make a thread dump next time it hangs... Thanks On 6/7/07, Trustin Lee <[EMAIL PROTECTED]> wrote: On 6/7/07, peter royal <[EMAIL PROTECTED]> wrote: > On Jun 6, 2007, at 6:44 PM, Paul Chen wrote: > > [2] When the traffic ramped up sharply lately, I begin to see it > > hun

Why only one ProtocolCodecFilter per chain

2007-06-07 Thread Chris Audley
Why does MINA limit one ProtocolCodecFilter in an IoFilterChain? This seems to be an unnecessary limitation. What if I want to use a series of codecs in order to build more complicated behaviours. I could have a line oriented filter that converts between ByteBuffers and lines, another that conve

IoFilter needs pre-connection callback (was: Proxy filter)

2007-06-07 Thread Chris Audley
My question is, how can MINA be modified to make it possible for filters to participate in the session before the connection is open and to modify the parameters used to open the connection if necessary. Yes, you've described how I can work around MINA's limitations in this area to get a reasonabl

Re: How could I set thread pool for IoServices and ExecutorFilters?

2007-06-07 Thread Messi Chan
Hi, Trustin, thx for your reply. According to your advice, I modify those codes below: ExecutorService executor1 = Executors.newCachedThreadPool(); SocketAcceptor acceptor = new SocketAcceptor(executor1); SocketAcceptorConfig config = (SocketAcceptorConfig) acceptor.getDefaultConfig(); config.s

Re: SSL Client does not send any data

2007-06-07 Thread seven
I attached logs.zip witch contain client.log and server.log They are rather verbose ( DEBUG enabled ). I noticed that the problem occurs later than sooner with DEBUG enabled but it happens anyway. Regards, Horia http://www.nabble.com/file/p11007693/logs.zip logs.zip Trustin Lee wrote: > >

Re: Close ioSession

2007-06-07 Thread Jannie Pieterse
The Client closes the connection. The server is a jabber server and i have no control there. I am only doing the client side. Jannie On 6/7/07, Trustin Lee <[EMAIL PROTECTED]> wrote: Hi Jannie, On 6/7/07, Jannie Pieterse <[EMAIL PROTECTED]> wrote: > Hi, > > I am using MINA 1.1.0. I am crea

Re: SSL Client does not send any data

2007-06-07 Thread Trustin Lee
On 6/5/07, seven <[EMAIL PROTECTED]> wrote: Unfortunately it does not resolve my problem. Still the same behavior. I am using java version "1.6.0_01" on WinXP SP2. I have tried different combinations: server using mina-filter-ssl-1.1.0-SNAPSHOT.jar, client using mina-filter-ssl-1.1.0-SNAPSHOT.j

Re: My Mina server got hung!

2007-06-07 Thread Trustin Lee
On 6/7/07, peter royal <[EMAIL PROTECTED]> wrote: On Jun 6, 2007, at 6:44 PM, Paul Chen wrote: > [2] When the traffic ramped up sharply lately, I begin to see it > hung and I > had to bounce > it to revive it. Do a thread dump next time this happens. We can see what's going on from that. http:

Re: How could I set thread pool for IoServices and ExecutorFilters?

2007-06-07 Thread Trustin Lee
Hi Messi, On 6/7/07, Messi Chan <[EMAIL PROTECTED]> wrote: Hi, all I have read this article http://mina.apache.org/configuring-thread-model.html http://mina.apache.org/configuring-thread-model.html . At the end of the article, author suggest us not share one thread pool for IoServices and Execu

Re: Close ioSession

2007-06-07 Thread Trustin Lee
Hi Jannie, On 6/7/07, Jannie Pieterse <[EMAIL PROTECTED]> wrote: Hi, I am using MINA 1.1.0. I am creating connections from a windows system to a Linux box. I open and close a lot of connections for the windows to the linux. After a while i run out of sockets on the windows system and i get th

[jira] Commented: (DIRMINA-372) Generics support for IoHandler

2007-06-07 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12502290 ] Trustin Lee commented on DIRMINA-372: - any more idea? > Generics support for IoHandler > --

Re: DefaultIoFuture - memory problem

2007-06-07 Thread Trustin Lee
On 5/16/07, Trustin Lee <[EMAIL PROTECTED]> wrote: On 5/16/07, peter royal <[EMAIL PROTECTED]> wrote: > On May 15, 2007, at 2:11 PM, Haviv wrote: > > Recently I am profiling memory on my application which is based on > > MINA > > 1.0.1. > > During my tests I found that there are many instances of

[jira] Closed: (DIRMINA-377) Reduce memory consumption of DefaultIoFuture

2007-06-07 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee closed DIRMINA-377. --- Resolution: Fixed Assignee: Trustin Lee Done as Niklas suggested > Reduce memory consumption

[jira] Closed: (DIRMINA-384) A possible duplicate event emission in DefaultIoFuture

2007-06-07 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee closed DIRMINA-384. --- Resolution: Fixed I reverted back to the 'synchronized' version. > A possible duplicate event emiss

[jira] Created: (DIRMINA-384) A possible duplicate event emission in DefaultIoFuture

2007-06-07 Thread Trustin Lee (JIRA)
A possible duplicate event emission in DefaultIoFuture -- Key: DIRMINA-384 URL: https://issues.apache.org/jira/browse/DIRMINA-384 Project: MINA Issue Type: Bug Components: Core

[jira] Closed: (DIRMINA-380) Invocation chaining for IoFuture

2007-06-07 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee closed DIRMINA-380. --- Resolution: Fixed Assignee: Trustin Lee Done. > Invocation chaining for IoFuture > --

[jira] Resolved: (DIRMINA-383) CumulativeProtocolDecoder & ByteOrder.LITTLE_ENDIAN

2007-06-07 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee resolved DIRMINA-383. - Resolution: Fixed Fix Version/s: 1.1.1 1.0.4 Assignee: Trustin

[jira] Resolved: (DIRMINA-348) slf4j InvalidClassChangeError - No diagnostics

2007-06-07 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee resolved DIRMINA-348. - Resolution: Fixed We documented recommended version of SLF4J library. http://mina.apache.org/qu

[jira] Resolved: (DIRMINA-373) NullPointer Exception in SocketAccept class

2007-06-07 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee resolved DIRMINA-373. - Resolution: Cannot Reproduce Assignee: Trustin Lee I compared the current SocketAcceptor c

Close ioSession

2007-06-07 Thread Jannie Pieterse
Hi, I am using MINA 1.1.0. I am creating connections from a windows system to a Linux box. I open and close a lot of connections for the windows to the linux. After a while i run out of sockets on the windows system and i get the following exception when i do a getSession() on the ConnectFuture

How could I set thread pool for IoServices and ExecutorFilters?

2007-06-07 Thread Messi Chan
Hi, all I have read this article http://mina.apache.org/configuring-thread-model.html http://mina.apache.org/configuring-thread-model.html . At the end of the article, author suggest us not share one thread pool for IoServices and ExecutorFilters, and better to use a cached thread pool for IoServ