session.setWriteTimeout( writeTimeout );
session.setIdleTime( IdleStatus.READER_IDLE, readTimeout );
// Create streams
InputStream in = new IoSessionInputStream();
OutputStream out = new IoSessionOutputStream( session );
session.setAttribute( KEY_IN, in );
session.setAttribute( KEY_OUT, out );
processStreamIo( session, in, out );
}