users@grizzly.java.net

What's the right way to terminate the server side of a connection?

From: Glenn <gsudduth_at_gmail.com>
Date: Mon, 27 Jan 2014 21:06:40 -0800

Hi Grizzly Users,

I am working on (what amounts to) a variation of the echo server example
where the server should terminate the connection after the client has
received the echoed response. Calling ...

   ctx.getConnection().close();
   return ctx.getStopAction();

... from within my filter works, but I wonder if there's a better way.

Thanks,
-- 
Glenn