users@grizzly.java.net

Re: 1.7.3.3 drop connection every 30 seconds

From: John ROM <snake-john_at_gmx.de>
Date: Thu, 05 Jun 2008 21:55:46 +0200

Hi,
in grizzly the default on an idle connection is set to 30 seconds.

if you need longer connections you need to have code like this ,of course on both sides
client and on server

TCPSelectorHandler tcpSelectorHandler = new TCPSelectorHandler();

 DefaultSelectionKeyHandler keyHandler = new DefaultSelectionKeyHandler();
  //keep connection for example for 30 minutes or whatever you need
 keyHandler.setTimeout(30 * 1000 * 60);
 tcpSelectorHandler.setSelectionKeyHandler(keyHandler);
 controller.addSelectorHandler(selectorHandler);

does this help?

Greetings john

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger