[jira] Closed: (DIRMINA-458) Unnecessary automatic adjustment of read buffer in SocketIoProcessor

2007-10-16 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee closed DIRMINA-458. --- Resolution: Fixed Fixed by deferring the decrement of the readBufferSize once. Because the

[jira] Commented: (DIRMINA-458) Unnecessary automatic adjustment of read buffer in SocketIoProcessor

2007-10-16 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12535069 ] Trustin Lee commented on DIRMINA-458: - Output after the fix: 400 / 1024 200 / 1024 200 / 512 200 / 512 256 /

Re: ByteBuffer getString() confused after CharacterCodingException

2007-10-16 Thread Trustin Lee
On 10/16/07, Yigal Rachman [EMAIL PROTECTED] wrote: Hi, Folks: When ByteBuffer.getString() breaks midway because of a CharacterCodingException, it fails to restore the position and limit; thus getString() is destructive when this happens. One can, of course, work around this, but it should

[jira] Updated: (DIRMINA-454) Trivial denial of service in TextLineDecoder

2007-10-16 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee updated DIRMINA-454: Fix Version/s: 1.0.7 1.1.4 Assignee: Trustin Lee

KeepAliveFilter

2007-10-16 Thread mat
I just wonder if Mina 2.0 will adopt any KeepAliveFilter(heartbeat)?

Re: [VOTE] Import KeepAlive functionality contribution under MINA PMC

2007-10-16 Thread mat
+1 very important (Definitely a MUST filter) On 9/27/07, Mark [EMAIL PROTECTED] wrote: [X]: +1, import On 9/26/07, Michael Grundvig [EMAIL PROTECTED] wrote: +1, import - Original Message - From: Trustin Lee [EMAIL PROTECTED] To: dev@mina.apache.org Sent: Wednesday,

Re: Getting the MINA Chills

2007-10-16 Thread Niklas Therning
Rodrigo Madera wrote: snip/ So, Is mina-sm mature enough for a release? Is it going to make it soon enough? We've been using mina-sm in our spam-filtering IMAP proxy (www.spamdrain.net) for the last 6 months and we haven't had any issues with so far. In fact, I'm going to move it into

Re: [VOTE] Import KeepAlive functionality contribution under MINA PMC

2007-10-16 Thread mat
Several questions on your KeepAliveFilter. 1) Why createActiveKeepAliveFilter, createPassiveKeepAliveFilter NOT return IoFilter(A factory method is better to return the interface instead of concrete class)? And my server or client has to extends ChainedIoHandler, otherwises, i can't use

Re: [VOTE] Import KeepAlive functionality contribution under MINA PMC

2007-10-16 Thread mat
Should your ActiveKeepAliveFilter, assiveKeepAliveFilter both extend IoFilterAdapter like in the tutorial Writing IoFilter? And you can return IoFilter in Factory method? On 10/16/07, mat [EMAIL PROTECTED] wrote: Several questions on your KeepAliveFilter. 1) Why createActiveKeepAliveFilter,

[jira] Commented: (DIRMINA-455) Add XBean tag to sources to enable XBean based configuration

2007-10-16 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12535207 ] Trustin Lee commented on DIRMINA-455: - I like the main idea, but I'd like to know more detail. It seems like

How to pronounce mina?

2007-10-16 Thread tiandike
How to pronounce mina? -- View this message in context: http://www.nabble.com/How-to-pronounce-mina--tf4634201s16868.html#a13233575 Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.

Re: How to pronounce mina?

2007-10-16 Thread Mark
phonetically, I pronounce it meena On 10/16/07, tiandike [EMAIL PROTECTED] wrote: How to pronounce mina? -- View this message in context: http://www.nabble.com/How-to-pronounce-mina--tf4634201s16868.html#a13233575 Sent from the Apache MINA Support Forum mailing list archive at Nabble.com

MINA 1.0.3 Compatibility

2007-10-16 Thread Nicolas Enjolras
Hi, I've shearched a lot on internet but I don't find any response to my question. Is MINA 1.0.3 compatible with a 1.4.1 JRE ? If the 1.0.3 is compatible what is the last version of MINA compatible with JRE 1.4.1 Thanks, Nicolas.

Re: MINA 1.0.3 Compatibility

2007-10-16 Thread Emmanuel Lecharny
http://mina.apache.org/faq.html#FAQ-Whatisrequiredtobuild%2FrunMINA%3F On 10/16/07, Nicolas Enjolras [EMAIL PROTECTED] wrote: Hi, I've shearched a lot on internet but I don't find any response to my question. Is MINA 1.0.3 compatible with a 1.4.1 JRE ? If the 1.0.3 is compatible what is

Re: ByteBuffer getString() confused after CharacterCodingException

2007-10-16 Thread Yigal Rachman
Hi, Trustin: The call I am using is buf.getString( decoder ). The limit does not change, but the position does; it remains at the "broken" byte. I thought it would simply read the buffer between position() and limit() without changing anything - did I misunderstand this? Yigal Trustin Lee

Re: How to pronounce mina?

2007-10-16 Thread mat
What else can we pronounce besides mn? ^^ just kidding. On 10/16/07, Mark [EMAIL PROTECTED] wrote: phonetically, I pronounce it meena On 10/16/07, tiandike [EMAIL PROTECTED] wrote: How to pronounce mina? -- View this message in context:

Re: ByteBuffer getString() confused after CharacterCodingException

2007-10-16 Thread Yigal Rachman
Hi, Trustin: I ran your test case on my system and had the following error (which is actually different from what I am seeing!) Exception in thread "main" java.lang.AssertionError: expected:12 but was:3 at org.junit.Assert.fail(Assert.java:71) at

Re: ByteBuffer getString() confused after CharacterCodingException

2007-10-16 Thread Yigal Rachman
Hi, Trustin: Yep - I just installed mina 1.1.2, and ByteBuffer now passes the test. Thanks again for the swift help. Yigal Yigal Rachman wrote: Hi, Trustin: I ran your test case on my system and had the following error (which is actually different from what I am seeing!)

[jira] Commented: (DIRMINA-456) Provide mechanism for flushing writeBuffer from IoHandler.messageReceived

2007-10-16 Thread Heath Borders (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12535387 ] Heath Borders commented on DIRMINA-456: --- Might that have occurred if he was running his filters in the same

Re: KeepAliveFilter

2007-10-16 Thread Trustin Lee
On 10/16/07, mat [EMAIL PROTECTED] wrote: I just wonder if Mina 2.0 will adopt any KeepAliveFilter(heartbeat)? Sure we will. We will start to work on it based on Eero's donation. HTH, Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID:

Re: Thanks and a question

2007-10-16 Thread Trustin Lee
On 10/16/07, Drac [EMAIL PROTECTED] wrote: You don't need a new protocol class for this, just add a constructor overide to the TextLineCodecFactory class (or extend the class) to take custom encoder and decoder LineDelmiter strings like so: public TextLineCodecFactory(Charset charset, String

Re: How to terminate all threads in SocketConnector ?

2007-10-16 Thread Trustin Lee
1) Please use SimpleByteBufferAllocator: ByteBuffer.setAllocator(new SimpleByteBufferAllocator()); ByteBuffer.setUseDirectBuffer(false); 2) Please make sure all socket connections were closed. 3) Did you diable ThreadModel as described in: http://mina.apache.org/configuring-thread-model.html

Re: How to terminate all threads in SocketConnector ?

2007-10-16 Thread chihiro
OK. I didn't do (1) (3). It's working wonderfully now. Thanks. Trustin Lee wrote: 1) Please use SimpleByteBufferAllocator: 2) Please make sure all socket connections were closed. 3) Did you diable ThreadModel as described in: -- View this message in context:

Implementation of isConnected()

2007-10-16 Thread chihiro
Hi, I am caching ConnectFuture in my client code and when during the call to send bytes to the server, I will test the connection by calling this isConnected() method: /** * @return true if we are connected to the remote peer, else false */ private final boolean isConnected() { IoSession

Re: Thanks and a question

2007-10-16 Thread Frederick Haebin Na
That's how I can contribute to the Mina. Oh! Gotta love this mailing list! Keep up the wonderful work, Mian Team. 2007/8/14, Trustin Lee [EMAIL PROTECTED]: Hi Charles, On 8/7/07, Charles Woodson [EMAIL PROTECTED] wrote: Will do, Trustin. As for making this a part of the general