[jira] Created: (FTPSERVER-212) Full Javadocs for the public API

2008-11-04 Thread Niklas Gustavsson (JIRA)
Full Javadocs for the public API Key: FTPSERVER-212 URL: https://issues.apache.org/jira/browse/FTPSERVER-212 Project: FtpServer Issue Type: Improvement Components: Core, Ftplets Affects

Re: ExecutorFilter quick poll: How do you use it ?

2008-11-04 Thread Julien Vermillard
On Tue, 04 Nov 2008 13:40:09 +0100 Emmanuel Lecharny [EMAIL PROTECTED] wrote: Hi guys, while thinking about the best possible implementation for the new chain, I had a look at the ExecutorFilter which is quite an interesting filter, wrt the way we handle the chain. Remember that a

Re: ExecutorFilter quick poll: How do you use it ?

2008-11-04 Thread Ashish
On Tue, Nov 4, 2008 at 6:10 PM, Emmanuel Lecharny [EMAIL PROTECTED] wrote: Hi guys, while thinking about the best possible implementation for the new chain, I had a look at the ExecutorFilter which is quite an interesting filter, wrt the way we handle the chain. Remember that a session may

setTrafficMask poll again

2008-11-04 Thread Julien Vermillard
Hi, There is something in MINA who has hook everywhere in the core, it's traffic mask. As far I understand the concept, the idea is to be able to block read and/or writes using session.setTrafficMask(...), I never needed it, and I wonder who use it and for what exactly ? Julien signature.asc

Re: [About the Filter Chain] Events

2008-11-04 Thread Emmanuel Lecharny
Maarten Bosteels wrote: Hello, Hi Maarten (eh eh, I typed it correctly this time !), I also use messageSent but I guess I can also replace it with an IoFutureListener. What do you mean when you say that SESSION_IDLE is questionable ? What would you replace it with ? There is a thread

Re: setTrafficMask poll again

2008-11-04 Thread Maarten Bosteels
Wasn't it an attempt to implement throttling ? When requests are coming in faster than they're being processed = set TrafficMask to block reading = TCP buffers will fill up (OS level) = TCP will tell sender to slow down = OOM prevented when queue of incoming messages gets smaller = resume

Re: ExecutorFilter quick poll: How do you use it ?

2008-11-04 Thread Emmanuel Lecharny
Ashish wrote: 2) Where in the chain do you put this filter ? Multiple places to implement SEDA (before ProtocolDecoder, before IoHandler) I would like to know if you are not ask risk to have a hell lot of thread if you do so. And I'm not sure that it has any added value, as the

Re: setTrafficMask poll again

2008-11-04 Thread Emmanuel Lecharny
Maarten Bosteels wrote: Wasn't it an attempt to implement throttling ? I have no idea. The documentation is pretty scarse, it's not used anywhere but as a parameter passed from method to method, the event type is never used to create an event ... When requests are coming in faster than

Re: setTrafficMask poll again

2008-11-04 Thread Julien Vermillard
It was used by Read/WriteThrottlingFilter wich was removed of 2.0 : http://www.nabble.com/Dropping-traffic-throttling-from-2.0-td16092085.html as said by Emm look like it's used nowhere is MINA codebase. As said by Trustin in this mail the remplacement is supposed to be o.a.m.f.executor.* and no

ApacheCon live video streaming available; keynotes and Apache 101 are free

2008-11-04 Thread Emmanuel Lécharny
Can't make ApacheCon this week in New Orleans? You can still watch all the keynotes, Apache 101 sessions, and system administration track in live video streams: http://streaming.linux-magazin.de/en/program_apacheconus08.htm?ann Keynotes and the Apache 101 lunchtime sessions are free; the

Q about the SessionCreated event

2008-11-04 Thread Emmanuel Lecharny
Hi, I have a question regarding the way this event is handled in MINA. When you connect to a remote server, the client will call the NioSocketConnector, which will create a connection, then a Processor will be spawn, its add() method will be called, the session will be initialized (the chain

where should I close the session?

2008-11-04 Thread Erix Yao
While using mina, I didn't know where to call session.close() after I write the message to the session. Shall I just set the idletime and leave the session close itself?

[jira] Created: (FTPSERVER-213) Mark internal classes as internal

2008-11-04 Thread Niklas Gustavsson (JIRA)
Mark internal classes as internal - Key: FTPSERVER-213 URL: https://issues.apache.org/jira/browse/FTPSERVER-213 Project: FtpServer Issue Type: Improvement Components: Core Affects Versions:

Re: where should I close the session?

2008-11-04 Thread Bogdan Ciprian Pistol
Hi Erix, You can do like this: ioSession.write(someMessage).addListener(IoFutureListener.CLOSE); Bogdan On Tue, Nov 4, 2008 at 10:38 AM, Erix Yao [EMAIL PROTECTED] wrote: While using mina, I didn't know where to call session.close() after I write the message to the session. Shall I just set

ExecutorFilter quick poll: How do you use it ?

2008-11-04 Thread Emmanuel Lecharny
Hi guys, while thinking about the best possible implementation for the new chain, I had a look at the ExecutorFilter which is quite an interesting filter, wrt the way we handle the chain. Remember that a session may handle more than one event at the same time, especially when using the

Re: [About the Filter Chain] Proposals

2008-11-04 Thread Julien Vermillard
On Mon, 03 Nov 2008 17:49:48 +0100 Emmanuel Lecharny [EMAIL PROTECTED] wrote: Niklas Gustavsson wrote: On Mon, Nov 3, 2008 at 4:13 PM, Mark Webb [EMAIL PROTECTED] wrote: I think we should focus on getting 2.0 out the door. We have been working on it long enough and I think there are

Re: [About the Filter Chain] Proposals

2008-11-04 Thread Norval Hope
Hi All, I'm not a direct Mina user but rather someone who integrates with ApacheDS, and had to delve deep into the Mina 1.x code to fix a bug. Hence my opinions, for what they are worth, are those of an outsider who expects to be able to debug pretty much any code when I have a) the source and b)