Description
my project use mina 2.0.5 . now i use 2.0.9
but There is something wrong with.
i use Short connection.and client session.close everytime. but 2.0.9 cpu
100% when session.close. i find server Continuously perform inputclose.why?
my project use mina 2.0.5 . now i use 2.0.9
but There is something wrong with.
i use Short connection.and client session.close everytime. but 2.0.9 cpu
100% when session.close. i find server Continuously perform inputclose.why?
Please implement IoHandler.inputClosed(IoSession) method in your handler and close the session manually. If not, the inputClosed event will not stop being fired.
Mina doesn't close sessions actively since 2.0.9. There will be no issue if custom handlers are derived from IoHandlerAdapter. But if some handler implements the IoHandler interface and forgets to close sessions after inputClosed event, same problem will occur.
See the IoHandlerAdapter: