Better example
This commit is contained in:
parent
82a84d822d
commit
dc06648005
@ -111,12 +111,11 @@ import org.jboss.netty.util.internal.ConcurrentIdentityWeakKeyHashMap;
|
||||
*
|
||||
* on every 3 seconds:
|
||||
*
|
||||
* for (Object key: executor.getChildExecutorKeySet()) {
|
||||
* InetAddress ip = (InetAddress) key;
|
||||
* for (Iterator<Object> i = executor.getChildExecutorKeySet().iterator; i.hasNext();) {
|
||||
* InetAddress ip = (InetAddress) i.next();
|
||||
* if (there is no active connection from 'ip' now &&
|
||||
* there has been no incoming connection from 'ip' for last 10 minutes) {
|
||||
*
|
||||
* executor.removeChildExecutor(key);
|
||||
* i.remove();
|
||||
* }
|
||||
* }
|
||||
* </pre>
|
||||
|
Loading…
Reference in New Issue
Block a user