d9e7381f opened a new issue, #461:
URL: https://github.com/apache/mina-sshd/issues/461

   ### Version
   
   2.6.0
   
   ### Bug description
   
   In my case, 20 connections were established using the same mina ssh client, 
10 to A-server(mina ssh server) and the others to B-server(mina ssh server). 
For a period of time, the network from client to B-server was not smooth. At 
this time, we found that the session from client to A-server was also 
disconnected.
   i got some log from A-server:
   `
   INFO - sshd-SshServer[150d80c4](port=8822)-timer-thread-1 [] 
c.s.p.t.s.s.CustomServerSessionImpl []: 
Disconnecting(CustomServerSessionImpl[classic-tx-beijing-01:hybrid01.classic-tx-beijing-01.8330@/10.53.4.116:12033]):
 SSH2_DISCONNECT_PROTOCOL_ERROR - Detected IdleTimeout after PT40.068S/PT40S ms.
   `
   
   
   I checked the mina ssh code and found that the same ssh client shares a 
thread for sending heartbeats. This will cause one session to send heartbeats 
and block other sessions from sending heartbeats, causing other sessions to be 
disconnected.
   
   ### Actual behavior
   
   In my case, 20 connections were established using the same mina ssh client, 
10 to A-server(mina ssh server) and the others to B-server(mina ssh server). 
For a period of time, the network from client to B-server was not smooth. At 
this time, we found that the session from client to A-server was also 
disconnected.
   i got some log from A-server:
   `
   INFO - sshd-SshServer[150d80c4](port=8822)-timer-thread-1 [] 
c.s.p.t.s.s.CustomServerSessionImpl []: 
Disconnecting(CustomServerSessionImpl[classic-tx-beijing-01:hybrid01.classic-tx-beijing-01.8330@/10.53.4.116:12033]):
 SSH2_DISCONNECT_PROTOCOL_ERROR - Detected IdleTimeout after PT40.068S/PT40S ms.
   `
   
   
   ### Expected behavior
   
   When the network from client to B-server is not smooth, the channel from 
client to A-server should not be disconnected.
   
   ### Relevant log output
   
   ```Shell
   client to B-server log:
   WARN - sshd-timer-thread-1 [] c.SshClientCreator$4$1 []: 
sendHeartBeat(ClientSessionImpl[classic-tx-beijing-01:hybrid01.classic-tx-beijing-01.8330@aa.cloud/10.235.88.64:8800])
 failed (IOException) to send heartbeat #7 request=keepal...@tunnel.mock.cn: 
Session is closed or closing while awaiting reply for request=keepal...@mock.cn
   org.apache.sshd.common.SshException: 
DefaultConnectFuture[classic-tx-beijing-01.cloud:hybrid01.classic-tx-beijing-01.cloud.8329@aa.cloud/10.235.88.64:8800]:
 Failed to get operation result within specified timeout: 20000
   
   
   A-server log:
   INFO - sshd-SshServer[150d80c4](port=8822)-timer-thread-1 [] 
c.s.p.t.s.s.CustomServerSessionImpl []: 
Disconnecting(CustomServerSessionImpl[classic-tx-beijing-01:hybrid01.classic-tx-beijing-01.8330@/10.53.4.116:12033]):
 SSH2_DISCONNECT_PROTOCOL_ERROR - Detected IdleTimeout after PT40.068S/PT40S ms.
   ```
   
   
   ### Other information
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to