mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashish <paliwalash...@gmail.com>
Subject Disabling Idle Session checker
Date Mon, 29 Jul 2013 12:47:39 GMT
Is there a way to configure or disable Session Idle checker?

I used following code (writing an example with monitoring). I need to test
the Stats, so need a longer timeout.

server.getSessionConfig().setIdleTimeInMillis(IdleStatus.READ_IDLE,
60*60*60);
server.getSessionConfig().setIdleTimeInMillis(IdleStatus.WRITE_IDLE,
60*60*60);

but I am getting IDLE event fired

[29 Jul 2013 18:13:40,601] [main] INFO
 org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - starting echo
server
[29 Jul 2013 18:13:40,705] [main] INFO
 org.apache.mina.transport.nio.NioTcpServer  - binding address
0.0.0.0/0.0.0.0:51002
[29 Jul 2013 18:13:43,478] [SelectorWorker Server-I/O-1] INFO
 LoggingFilter1  - OPENED
[29 Jul 2013 18:13:43,478] [SelectorWorker Server-I/O-1] INFO
 org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - session
(0x00000000: org.apache.mina.transport.nio.NioTcpServer, server,
/0:0:0:0:0:0:0:1:56805 => /0:0:0:0:0:0:0:1:51002) open
[29 Jul 2013 18:13:43,478] [SelectorWorker Server-I/O-1] INFO
 org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - session
opened (0x00000000: org.apache.mina.transport.nio.NioTcpServer, server,
/0:0:0:0:0:0:0:1:56805 => /0:0:0:0:0:0:0:1:51002)
[29 Jul 2013 18:13:43,481] [SelectorWorker Server-I/O-1] INFO
 LoggingFilter1  - WRITTING: WriteRequest[No future, Original message :
'ByteBuffer[len=8,str='welcome
']', Encoded message : 'ByteBuffer[len=8,bytes='0x77 0x65 0x6C 0x63 0x6F
0x6D 0x65 0x0A']']
[29 Jul 2013 18:13:43,482] [SelectorWorker Server-I/O-1] INFO
 org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - message
java.nio.HeapByteBuffer[pos=8 lim=8 cap=8] sent
[29 Jul 2013 18:13:43,482] [SelectorWorker Server-I/O-1] INFO
 LoggingFilter1  - IDLE
[29 Jul 2013 18:13:44,715] [IdleChecker] INFO  LoggingFilter1  - IDLE
[29 Jul 2013 18:13:44,715] [IdleChecker] INFO
 org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - session
(0x00000000: org.apache.mina.transport.nio.NioTcpServer, server,
/0:0:0:0:0:0:0:1:56805 => /0:0:0:0:0:0:0:1:51002) idle
[29 Jul 2013 18:13:44,715] [IdleChecker] INFO  LoggingFilter1  - IDLE
[29 Jul 2013 18:13:44,715] [IdleChecker] INFO
 org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - session
(0x00000000: org.apache.mina.transport.nio.NioTcpServer, server,
/0:0:0:0:0:0:0:1:56805 => /0:0:0:0:0:0:0:1:51002) idle
[29 Jul 2013 18:13:47,597] [SelectorWorker Server-I/O-1] INFO
 LoggingFilter1  - RECEIVED: ByteBuffer[len=11,str='blah blah
']
[29 Jul 2013 18:13:47,597] [SelectorWorker Server-I/O-1] INFO
 org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - echoing
[29 Jul 2013 18:13:47,597] [SelectorWorker Server-I/O-1] INFO
 LoggingFilter1  - WRITTING: WriteRequest[No future, Original message :
'ByteBuffer[len=11,str='blah blah
']', Encoded message : 'ByteBuffer[len=11,bytes='0x62 0x6C 0x61 0x68 0x20
0x62 0x6C 0x61 0x68 0x0D 0x0A']']
[29 Jul 2013 18:13:47,597] [SelectorWorker Server-I/O-1] INFO
 org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - message
java.nio.DirectByteBuffer[pos=11 lim=11 cap=65536] sent
[29 Jul 2013 18:13:47,598] [SelectorWorker Server-I/O-1] INFO
 LoggingFilter1  - IDLE
[29 Jul 2013 18:13:48,718] [IdleChecker] INFO  LoggingFilter1  - IDLE
[29 Jul 2013 18:13:48,719] [IdleChecker] INFO
 org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - session
(0x00000000: org.apache.mina.transport.nio.NioTcpServer, server,
/0:0:0:0:0:0:0:1:56805 => /0:0:0:0:0:0:0:1:51002) idle
[29 Jul 2013 18:13:48,719] [IdleChecker] INFO  LoggingFilter1  - IDLE
[29 Jul 2013 18:13:48,719] [IdleChecker] INFO
 org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - session
(0x00000000: org.apache.mina.transport.nio.NioTcpServer, server,
/0:0:0:0:0:0:0:1:56805 => /0:0:0:0:0:0:0:1:51002) idle
[29 Jul 2013 18:14:05,712] [main] INFO
 org.apache.mina.transport.nio.NioTcpServer  - unbinding
0.0.0.0/0.0.0.0:51002

Suggestions?

-- 
thanks
ashish

Blog: http://www.ashishpaliwal.com/blog
My Photo Galleries: http://www.pbase.com/ashishpaliwal

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message