/** * {@inheritDoc} */ @Override protected NioSession newSession(IoProcessor<NioSession> processor, SocketChannel handle) { return new NioSocketSession(this, processor, handle); }
/** * {@inheritDoc} */ @Override protected NioSession newSession(IoProcessor<NioSession> processor, SocketChannel handle) { return new NioSocketSession(this, processor, handle); }
/** * {@inheritDoc} */ @Override protected NioSession newSession(IoProcessor<NioSession> processor, SocketChannel handle) { final NioSocketSession nioSocketSession = new NioSocketSession(this, processor, handle); // NB: We do not catch the RuntimeIoException for this // call because catching one and returning null leads to NPE. nioSocketSession.initSessionConfig(); return nioSocketSession; }
return new NioSocketSession(this, processor, ch); } catch (Throwable t) { if(t.getMessage().equals("Too many open files")) {
return new NioSocketSession(this, processor, ch); } catch (Throwable t) { if(t.getMessage().equals("Too many open files")) {
final NioSocketSession session = new NioSocketSession(this, processor, ch);