mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trustin Lee" <trus...@gmail.com>
Subject Re: Connector with thread to receive and thread to send
Date Sat, 07 Oct 2006 07:06:45 GMT
(Catching up countless messages without replies...)

On 7/18/06, Joao <joao@wireless-networks.com> wrote:
>     I am running a kinda proxy server which connects to an upstream
> server.
>     I wish I could have a thread to receive , and another thread to send
> information thru the connector.
>     Can I do that without changing the current connector behavior?
>     May be that's should not be the best advice on the issue , any
> opinion about it?

We've added a proxy example to MINA 1.0 which might interest you.  But you
cannot use such thread model for now because it is completely up to I/O
processor.  For now, one I/O thread takes care of both receiving and
sending.  Is there any reason that you need two threads for I/O?  Actually
using two threads to handle I/O of one connection causes a lot of problem.

what we call human nature is actually human habit
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message