Question about IoSession.write() synchronization

2010-08-09 Thread Guy Itzhaki
Dear mina team and users, I have a multi threaded application, my threads as shown below are responsible for sending data to the client. Here is a scrap of the thread code: public class MessageSender implements Runnable { private final IoSession session; public void run()

RE: Question about IoSession.write() synchronization

2010-08-12 Thread Guy Itzhaki
Thank you very much for the fast response -Original Message- From: Emmanuel Lecharny [mailto:elecha...@gmail.com] Sent: Tuesday, August 10, 2010 9:46 AM To: users@mina.apache.org Subject: Re: Question about IoSession.write() synchronization On 8/10/10 7:49 AM, Guy Itzhaki wrote: Dear

session.getCreationTime - milli vs nano

2010-08-26 Thread Guy Itzhaki
Dear mina team and users, According to the session.getCreationTime() java doc the method returns the session's creation time in nanoseconds, however I dig in and found out that the creation time is actually in milli (which is great as I can create Date using milli and not using nano) Can

RE: session.getCreationTime - milli vs nano

2010-08-26 Thread Guy Itzhaki
Thanks I will -Original Message- From: Ashish [mailto:paliwalash...@gmail.com] Sent: Thursday, August 26, 2010 4:06 PM To: users@mina.apache.org Subject: Re: session.getCreationTime - milli vs nano check RC1 release.. the docs are updated :) On Thu, Aug 26, 2010 at 6:33 PM, Guy Itzhaki

MINA 2.0.0 GA

2010-09-05 Thread Guy Itzhaki
I noted that 2.0.0-RC1 is unstable and I would like to use mina in our next version. Do you have any idea when a GA will be released? Thanks, Guy Itzhaki

RE: Possible synchronization issue

2010-09-14 Thread Guy Itzhaki
PM, Guy Itzhaki wrote: No. This is the filter I'm using: new ExecutorFilter(Executors.newFixedThreadPool(2)) Try to use the OrderedThreadPool then. -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com Click here to report this message as SPAM: http://vsp.ateranetworks.com

RE: Possible synchronization issue

2010-09-14 Thread Guy Itzhaki
FileWithHeaderWriteFilter.getHeader - SENDING header 156 14:12:10 14-09-2010 DEBUG Thread:NioProcessor-1 OrderedThreadPoolExecutor.debug - Adding event MESSAGE_SENT to session 2 Queue : [MESSAGE_SENT, ] -Original Message- From: Guy Itzhaki [mailto:gitzh...@nextnine.com] Sent: Tuesday, September 14, 2010 2

RE: Possible synchronization issue

2010-09-16 Thread Guy Itzhaki
Hi Emmanuel, Did you have a chance to looked into this issue yet? Please let me know if there is anything else I can provide you with that can assist you during your investigation. Thanks, Guy Itzhaki -Original Message- From: Emmanuel Lécharny [mailto:elecha...@apache.org] Sent

RE: Possible synchronization issue

2010-09-20 Thread Guy Itzhaki
Dear Emmanuel, Do you believe you will take a look on this issue today or still struggling the release? I can easily reproduce it so please don't hesitate to ask me for any kind of help in reproducing or explaining the symptom. Thanks again, Guy Itzhaki -Original Message- From

RE: Re: Possible synchronization issue

2010-09-20 Thread Guy Itzhaki
...@gmail.com] Sent: Monday, September 20, 2010 10:46 AM To: users@mina.apache.org Cc: d...@mina.apache.org Subject: Fwd: Re: Possible synchronization issue -- Users mailing list, not dev mailing list ! Emmanuel, wake up ! On 9/20/10 8:59 AM, Guy Itzhaki wrote: Dear Emmanuel, Do you believe

RE: Possible synchronization issue

2010-09-21 Thread Guy Itzhaki
] Sent: Monday, September 20, 2010 3:34 PM To: users@mina.apache.org Subject: Re: Possible synchronization issue On 9/20/10 11:35 AM, Guy Itzhaki wrote: Ok, I have tested the code, but sadly the client blows chuncks at some point, as it does not assume the response can be split in pieces. I

Can't find SerialConnector

2010-10-25 Thread Guy Itzhaki
I'm trying to create a serial connector using the example you've provided in the documentation: IoConnector connector = new SerialConnector() SerialAddress portAddress=new SerialAddress( ... ); But I'm missing the SerialConnector (I'm missing the SerialAddress as well). Where can I find

RE: Can't find SerialConnector

2010-10-25 Thread Guy Itzhaki
Just found the source code, do you have a binary anywhere or I have to build it myself? From: Guy Itzhaki Sent: Monday, October 25, 2010 12:47 PM To: users@mina.apache.org Subject: Can't find SerialConnector I'm trying to create a serial connector using the example you've provided

RE: Can't find SerialConnector

2010-10-25 Thread Guy Itzhaki
: Emmanuel Lecharny [mailto:elecha...@gmail.com] Sent: Monday, October 25, 2010 12:58 PM To: users@mina.apache.org Subject: Re: Can't find SerialConnector On 10/25/10 12:53 PM, Guy Itzhaki wrote: Just found the source code, do you have a binary anywhere or I have to build it myself? You have

SessionHandler - sessionClosed

2011-02-09 Thread Guy Itzhaki
All, Is there a guarantee that once exceptionCaught(...) or sessionIdle(...) methods are invoked the sessionClosed() method will be invoked too? Thanks Guy

where to place the ExecutorFilter?

2011-02-13 Thread Guy Itzhaki
(Sorry for my pre mature email an hour ago - my mistake) Hi all, I'm using Mina 2.0.2 for my server which, in the nutshell, is a very simple server that acts as a message server, clients connect to the server in order to send and receive messages. I expect up to 200 clients to connect to the

RE: where to place the ExecutorFilter?

2011-02-13 Thread Guy Itzhaki
the NIOProcessor threads for that? Thanks, Guy -Original Message- From: Emmanuel Lecharny [mailto:elecha...@gmail.com] Sent: Sunday, February 13, 2011 1:32 PM To: users@mina.apache.org Subject: Re: where to place the ExecutorFilter? On 2/13/11 11:41 AM, Guy Itzhaki wrote: (Sorry for my pre mature

RE: where to place the ExecutorFilter?

2011-02-14 Thread Guy Itzhaki
-Original Message- From: Emmanuel Lécharny [mailto:elecha...@apache.org] Sent: Monday, February 14, 2011 2:36 AM To: users@mina.apache.org Subject: Re: where to place the ExecutorFilter? On 2/13/11 3:23 PM, Guy Itzhaki wrote: Emmanuel, thanks for the response. 1. The server

jmx with mina 2.0.2

2011-02-14 Thread Guy Itzhaki
I'm trying to use jmx in my Mina based server, I ran the example andI get the following error Exception in thread main java.lang.NoClassDefFoundError: ognl/TypeConverter Help will be appreciated. Guy

RE: jmx with mina 2.0.2

2011-02-14 Thread Guy Itzhaki
Working, thanks From: Guy Itzhaki Sent: Monday, February 14, 2011 11:41 AM To: users@mina.apache.org Subject: jmx with mina 2.0.2 I'm trying to use jmx in my Mina based server, I ran the example andI get the following error Exception in thread main java.lang.NoClassDefFoundError: ognl

mina 2.0.2 - NullPointerException in AbstractPollingIoProcessor

2012-03-29 Thread Guy Itzhaki
Dear forum, I'm using mina 2.0.2 and once in a while I get this error in the console: Exception in thread pool-4-thread-1 java.lang.NullPointerException at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(Ab stractPollingIoProcessor.java:1151) at

RE: mina 2.0.2 - NullPointerException in AbstractPollingIoProcessor

2012-03-29 Thread Guy Itzhaki
-Original Message- From: Emmanuel Lécharny [mailto:elecha...@gmail.com] Sent: Thursday, March 29, 2012 3:21 PM To: users@mina.apache.org Subject: Re: mina 2.0.2 - NullPointerException in AbstractPollingIoProcessor Le 3/29/12 2:15 PM, Guy Itzhaki a écrit : Dear forum, I'm using mina 2.0.2

HTTP encoder\filter for MINA server

2013-11-21 Thread Guy Itzhaki
Dear Forum, I'm using Mina 2.0.7 for my server and I have implemented my own decoders\encoders to handle incoming messages. I would like to handle http connections coming from web browsers. It seems to me as a trivial issue and I wonder if anyone in this forum had implemented such a

Best practices for working with files + Anti-Virus (?)

2014-09-24 Thread Guy Itzhaki
Dear forum, My question is not directly related to MINA but I hope that you experienced a similar issue before. I used MINA 2.0.7 to write my server. The server receives files from dozens of clients and store these files on a designated folders on the hard disk to be processed later. The files

RE: Best practices for working with files + Anti-Virus (?)

2014-09-24 Thread Guy Itzhaki
. 10xs -Original Message- From: Alexander Christian [mailto:a...@root1.de] Sent: Wednesday, September 24, 2014 11:38 AM To: users@mina.apache.org Subject: Re: Best practices for working with files + Anti-Virus (?) Am 24.09.2014 10:27, schrieb Guy Itzhaki: Everything works fine until

disposing acceptor does not terminate all the OrderedThreadPoolExecutor threads

2015-05-12 Thread Guy Itzhaki
Dear Forum, I'm terminating my mina based server using acceptor.unbind(); acceptor.dispose(true); However I noted that the executor's resources are not totally freed, some of its threads remains alive. This prevents my application from terminating gracefully. This is the stack trace of one of

RE: disposing acceptor does not terminate all the OrderedThreadPoolExecutor threads

2015-05-13 Thread Guy Itzhaki
I found the problem. I had to destroy the threadpool explicitly just before I unbind and dispose the acceptor, apparently it leaves some threads hanging. I would expect the dispose to do that for me... -Original Message- From: Guy Itzhaki [mailto:g...@nextnine.com] Sent: Tuesday, May

RE: destroying mina gracefully

2016-01-04 Thread Guy Itzhaki
13:17, Guy Itzhaki a écrit : > Hi all, > I'm using mina 2.0.9 server in my application and I wonder what is the best > way to terminate mina? Usually, by disposing the IoService : /** * Releases any resources allocated by this service. Please note that * this method mi

destroying mina gracefully

2016-01-04 Thread Guy Itzhaki
Hi all, I'm using mina 2.0.9 server in my application and I wonder what is the best way to terminate mina? When my application gets signal to stop it invokes the acceptor.unbind method hoping this will do the trick, however I noted that sometimes the unbind() method got stuck and never return.

Re: Acceptor dispose block indefinitely

2016-06-24 Thread Guy Itzhaki
I experienced the same with Mina 2.0.9. When I delve deeper into mina code I saw that the thread is looping endless until the sessions' collection is empty. And due to synchronization issue I guess it never does... It was a long time ago and I'm not in front of my laptop right now so I cannot

verbose logs in mina 2.0.13

2016-09-20 Thread Guy Itzhaki
Hi all, I've upgraded mina from 2.0.9 to 2.0.13 and since then I keep getting this entry in the log 20/09/16 20:20:00 WARN [NioProcessor-2] IoProcessor - Create a new selector. Selected is 0, delta = 0 Is it a code left over or on purpose? Guy

Re: verbose logs in mina 2.0.13

2016-09-20 Thread Guy Itzhaki
elecha...@gmail.com>> wrote: Le 20/09/16 ? 19:55, Guy Itzhaki a ?crit : Hi all, I've upgraded mina from 2.0.9 to 2.0.13 and since then I keep getting this entry in the log 20/09/16 20:20:00 WARN [NioProcessor-2] IoProcessor - Create a new selector. Selected is 0, delta = 0 Is it a co

RE: Proxy example memeory usage going high

2017-06-12 Thread Guy Itzhaki
:31, Guy Itzhaki a écrit : > Dear all, > > We are using the proxy example using mina 2.0.15. > > At the beginning everything looks good, but when we tried to funnel a > 1GB file the Proxy memory went high till the proxy doesn't receive new > connections. > > This is stra

Proxy example memeory usage going high

2017-06-12 Thread Guy Itzhaki
Dear all, We are using the proxy example using mina 2.0.15. At the beginning everything looks good, but when we tried to funnel a 1GB file the Proxy memory went high till the proxy doesn't receive new connections. This is strange because I was expecting that every buffer will be cleared once