Subramaniajeeva created SSHD-1180:
-------------------------------------

             Summary: Limiting the number of active sessions
                 Key: SSHD-1180
                 URL: https://issues.apache.org/jira/browse/SSHD-1180
             Project: MINA SSHD
          Issue Type: Bug
    Affects Versions: 2.6.0
            Reporter: Subramaniajeeva


I upgraded mina version from 2.3.0 to 2.6.0  two months back. Since then I 
could see that the number of sessions being held keep on increasing for a 
particular client. I found this using 
{color:#9876aa}sshd{color}.getActiveSessions().

On analysing further,I could see the below messages from debug logs:
{code:java}
2021-06-05 00:00:00.222 [DEBUG] 
[sshd-SshServer[18a79bc1](port=2000)-nio2-thread-5] ServerConnectionService - 
globalRequest(ServerConnectionService[ServerSessionImpl[<username>@/10.125.247.40:46011]])
 received SSH_MSG_GLOBAL_REQUEST [email protected] want-reply=true{code}
Looks like the client keep on sending keep alive packets even after the file 
transfer is done keeping the session active. I didn't see this behaviour in 
earlier version.

Can I get some help on resolving this issue? Is there a systemic way to figure 
out the last activity based on which cancel the session?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to