Re: AsyncWeb HTTP codec is in mina-filter-codec-http now.

2007-11-19 Thread Jeff Mesnil
Hi Trustin,, Trustin Lee wrote: Hi folks, I've just succeeded to import AsyncWeb HTTP codec into mina-filter-codec-http submodule in trunk. I had to rewrite the client side codec, but it seems like it's working OK. Please note this is a massive change so you might see a lot of compilation

Re: IoFilter real life use scenario

2007-11-19 Thread Rich Dougherty
On 11/19/07, Cam Bazz [EMAIL PROTECTED] wrote: What might be the potential uses for an IoFilter? I have read the tutorial on mina page, and from what I understood is when you have to transform events before handling to a session handler, but is this not what is performed by the protocol

Re: AsyncWeb HTTP codec is in mina-filter-codec-http now.

2007-11-19 Thread Trustin Lee
On Nov 19, 2007 5:41 PM, Jeff Mesnil [EMAIL PROTECTED] wrote: Hi Trustin,, Trustin Lee wrote: Hi folks, I've just succeeded to import AsyncWeb HTTP codec into mina-filter-codec-http submodule in trunk. I had to rewrite the client side codec, but it seems like it's working OK. Please

Re: using SimpleIoProcessorPool in multiple acceptors

2007-11-19 Thread Trustin Lee
On Nov 19, 2007 10:45 AM, steview [EMAIL PROTECTED] wrote: Hi Trustin, If you could add that feature that would be great - Let me try to add that feature in my spare time. Any patches are welcome, too. I think this feature should be included in the first RC of 2.0.0 at least. There

Re: AsyncWeb HTTP codec is in mina-filter-codec-http now.

2007-11-19 Thread Trustin Lee
On Nov 19, 2007 9:31 PM, Trustin Lee [EMAIL PROTECTED] wrote: On Nov 19, 2007 9:10 PM, Jeff Mesnil [EMAIL PROTECTED] wrote: Hi Trustin, Thanks for the quick fixes. Trustin Lee wrote: 3/ in the same state machine, the parameters of HTTP request are not decoded (still figuring this

Re: AsyncWeb HTTP codec is in mina-filter-codec-http now.

2007-11-19 Thread Jeff Mesnil
Hi Trustin, Trustin Lee wrote: On Nov 19, 2007 9:31 PM, Trustin Lee [EMAIL PROTECTED] wrote: Yep, I thought the same, but updating requestUri every time is too expensive. As an alternative, there's 'normalize()' method in MutableHttpRequest (and consequently in DefaultHttpRequest). It adds

RE: AsyncWeb HTTP codec is in mina-filter-codec-http now.

2007-11-19 Thread Irving, Dave
I don't see a use case where I want *not* to call normalize() and break HTTP compatibility... but I don't have enough imagination :) Me neither. I'd think you'd want normalize() always being called in the codec. Dave

Re: mina-protocol-http-client, AsyncWeb and Jakarta HttpComponents

2007-11-19 Thread Jeff Genender
Trustin Lee wrote: 2) I also think mina-protocol-http-client module needs more work to provide enough features to compare with existing HTTP client libraries such as Jakarta HttpComponents, so moving it into sandbox might be a better solution considering that we are going to release MINA

Re: mina-protocol-http-client, AsyncWeb and Jakarta HttpComponents

2007-11-19 Thread Jeff Genender
Whoops and forgot to mention...this version also has response timeouts working as well. Jeff Jeff Genender wrote: Trustin Lee wrote: 2) I also think mina-protocol-http-client module needs more work to provide enough features to compare with existing HTTP client libraries such as Jakarta

VMPIPE and IPC

2007-11-19 Thread Angel.Figueroa
1. Can i use VMPIPE for implementing ipc between to separate java process applications? 2. Can VMPIPE be use in a production application, for decoupling the connectivity layer from the business layer? In other word have a process for received the connection from the outside and business

Re: Question regarding threading

2007-11-19 Thread Maciek Stachowiak
Hi Trustin, sorry for messing up your name last time... Ok, so assuming I use MINA 2.0 (probably the best option) I found some code you had posted previously... SocketAcceptor acceptor = new NioSocketAcceptor(); acceptor.getFilterChain().addLast(executor, new ExecutorFilter(

Re: Question regarding threading

2007-11-19 Thread Trustin Lee
Hi Maciek, On Nov 20, 2007 5:26 AM, Maciek Stachowiak [EMAIL PROTECTED] wrote: Hi Trustin, sorry for messing up your name last time... Ok, so assuming I use MINA 2.0 (probably the best option) I found some code you had posted previously... SocketAcceptor acceptor = new

Re: VMPIPE and IPC

2007-11-19 Thread Trustin Lee
Hi Angel, On Nov 20, 2007 4:40 AM, Angel.Figueroa [EMAIL PROTECTED] wrote: 1. Can i use VMPIPE for implementing ipc between to separate java process applications? No. It's for between services in the same VM. 2. Can VMPIPE be use in a production application, for decoupling the

Re: Do we have a filter that behaves like libwrap.so?

2007-11-19 Thread Mark
I would say that the BlacklistFilter is much like /etc/hosts.deny. We do not have a filter that mimics the functionality of /etc/hosts.allow On Nov 19, 2007 8:32 PM, Alex Karasulu [EMAIL PROTECTED] wrote: Hi guys, I know we have a blacklist filter but does anyone know if a tcp wrappers

Re: using SimpleIoProcessorPool in multiple acceptors

2007-11-19 Thread Mark
As a follow up to my previous email. I could take a look at adding this feature as well. On Nov 19, 2007 8:10 PM, Mark [EMAIL PROTECTED] wrote: On Nov 18, 2007 7:46 PM, Trustin Lee [EMAIL PROTECTED] wrote: Hi Steve, On Nov 19, 2007 9:40 AM, steview [EMAIL PROTECTED] wrote: Hi

Re: Do we have a filter that behaves like libwrap.so?

2007-11-19 Thread Alex Karasulu
Right that's what I thought. Does anyone think it would it be worth adding some pluggable means to load the blacklisted IPs from files with the same format? Alex On Nov 19, 2007 8:39 PM, Mark [EMAIL PROTECTED] wrote: I would say that the BlacklistFilter is much like /etc/hosts.deny. We do

SerialSessionConfig.inputBufferSize and IoSessionConfig.readBufferSize

2007-11-19 Thread Trustin Lee
Hi Julien, Are they the same thing or different from each other? If they are same, we could replace inputBufferSize with readBufferSize, overriding JavaDoc comments. Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID: 0x0255ECA6

Re: using SimpleIoProcessorPool in multiple acceptors

2007-11-19 Thread Trustin Lee
Sure, please go ahead. :) Cheers, Trustin On Nov 20, 2007 10:11 AM, Mark [EMAIL PROTECTED] wrote: As a follow up to my previous email. I could take a look at adding this feature as well. On Nov 19, 2007 8:10 PM, Mark [EMAIL PROTECTED] wrote: On Nov 18, 2007 7:46 PM, Trustin Lee

Re: Do we have a filter that behaves like libwrap.so?

2007-11-19 Thread Mark
I think it would be cool to have a filter that loaded /etc/hosts.(deny|allow). The one question I do have; why would a MINA based applications require such a filter if the OS should be handling this? The other concern I have is what would the efficacy of the filter be in a non-unix environment?

Re: Do we have a filter that behaves like libwrap.so?

2007-11-19 Thread Alex Karasulu
See I'm just trying to think of ways in which better UNIX integration can be optionally incorporated. Another thing I like is logging to /var/log/secure which get's picked up by things like DenyHosts to feedback into these primitive access lists. I was thinking about how to do this for ApacheDS

Re: Do we have a filter that behaves like libwrap.so?

2007-11-19 Thread Alex Karasulu
Very good questions ... On Nov 19, 2007 9:11 PM, Mark [EMAIL PROTECTED] wrote: I think it would be cool to have a filter that loaded /etc/hosts.(deny|allow). The one question I do have; why would a MINA based applications require such a filter if the OS should be handling this? In order for

Re: VMPIPE and IPC

2007-11-19 Thread hezjing
May I know what is VMPIPE? I'm not able to find good explaination from Google though, and many results are related MINA. On 11/20/07, Angel.Figueroa [EMAIL PROTECTED] wrote: 1. Can i use VMPIPE for implementing ipc between to separate java process applications? 2. Can VMPIPE be use in a