Hi,
There is this slight issue that I face with Mina. It is a minor issue only
though.
I am using Windows XP as the development and testing environment, and I have
three separate instances of Mina running, one is the Server simulator,
another is the Proxy and the last is the Client simulator. When I press
Ctrl-C in the Proxy, and the Proxy terminates, the Client, which uses an
IOConnector, and is still sending messages to the Proxy will receive an
exception from the Proxy:
java.io.IOException: An existing connection was forcibly closed by
the remote host
My exceptionCaught function will close the Session. The code for my function
is below:
public void exceptionCaught( IoSession session, Throwable cause )
{
SessionLog.info( session, "SxCommServerSessionHandler::Exception:" +
cause);
cause.printStackTrace();
// close the connection on exceptional situation
session.close();
}
However, I still need to wait for around 10 - 30 seconds before my client
application exits. I have already inserted 'session.isClosing()' calls
before doing writes to prevent future writes from blocking the close. Is it
due to NIO? Or is there anything I can do to explicitly to increase my
client shutdown time? It is funny because using conventional Java sockets, I
do not this problem.
Regards,
Kok Hoor
-----Original Message-----
From: Trustin Lee [mailto:[EMAIL PROTECTED]
Sent: Monday, September 04, 2006 1:11 PM
To: [email protected]
Subject: Re: [VOTE] Release MINA 0.9.5
Hi Kok,
On 9/4/06, Kok Hoor (Gmail) <[EMAIL PROTECTED]> wrote:
>
> I've been using MINA 0.9.5 quite some time now, for a research project
> which
> is to develop a proxy server for integration between various systems (eg.
> simple terminals like Verifone EDCs to retail POS systems). As far as I am
> concerned, MINA 0.9.5 is quite stable, as my test involves sending and
> receiving messages continuously between my test client and test server.
Thank you for your feedback. Please let us know whenever you have a problem
with MINA or you think MINA needs any improvement. :)
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41 4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4 455E 1C62 A7DC 0255 ECA6