Hi, I have built a server based on MINA. Sometimes the message arrives late. Client is only telnet so there is nothing in between. Following are the setup settings. Can anyone please highlight if a setting is missing or a wrong setting is set? The setup/init code is below.
int processorCount = Runtime.getRuntime().availableProcessors(); if (processorCount <= 0) { processorCount = 8;} NioSocketAcceptor acceptor = new NioSocketAcceptor(processorCount); TextLineCodecFactory codec = new TextLineCodecFactory(Charset.forName("utf-8")); codec.setDecoderMaxLineLength(1000 * 1024); codec.setEncoderMaxLineLength(1000 * 1024); acceptor.getFilterChain().addLast("codec", new ProtocolCodecFilter(codec)); acceptor.getFilterChain().addLast("threadPool", new ExecutorFilter(new OrderedThreadPoolExecutor(1000, 1000))); acceptor.getFilterChain().addLast("executor1", new ExecutorFilter(1000, 1000)); acceptor.getSessionConfig().setReadBufferSize(2048); acceptor.getSessionConfig().setIdleTime(IdleStatus.BOTH_IDLE, 10); acceptor.getSessionConfig().setTcpNoDelay(true); acceptor.setBacklog(5000); acceptor.bind(new InetSocketAddress(port)); Regards nak