144145146147148149150151152153154
} catch (ClosedChannelException e) { logger.warn("Failed to register a temporary selector.", e); return -1; } SelectionKey key = ch.keyFor(loop.selector); // Start the selector loop. executor.execute(loop); // Level 0
264265266267268269270271272273274
} catch (Throwable e) { logger.warn("Failed to register a temporary selector.", e); return -1; } SelectionKey key = ch.keyFor(loop.selector); // Start the selector loop. executor.execute(loop); // Level 0
301302303304305306307308309310311
427428429430431432433434435436437
{ request.exception = new IllegalArgumentException( "Address not bound: " + request.address ); } else { SelectionKey key = ssc.keyFor( selector ); key.cancel(); selector.wakeup(); // wake up again to trigger thread death
423424425426427428429430431432433
273274275276277278279280281282283
424425426427428429430431432433434
302303304305306307308309310311312