apache / mina-sshd

Apache MINA sshd is a comprehensive Java library for client- and server-side SSH.
https://mina.apache.org/sshd-project/
Apache License 2.0
847 stars 353 forks source link

After the upgrade to 2.12.0, the query of remote files times out. #488

Open leild opened 2 months ago

leild commented 2 months ago

Version

2.12.0

Bug description

After the upgrade to 2.12.0, the query of remote files times out. [ ERROR] [2024-04-23 11:47:31.900] [177.209.11.83] [servicecomb-pool-1-thread-1] [com.huawei.csp.om.framework.component.sftp.impl.SftpClientImpl.ls(SftpClientImpl.java:410)] - org.apache.sshd.common.SshException: Timeout expired while waiting for id=109 java.io.UncheckedIOException: org.apache.sshd.common.SshException: Timeout expired while waiting for id=109 at org.apache.sshd.sftp.client.impl.SftpDirEntryIterator.load(SftpDirEntryIterator.java:181) at org.apache.sshd.sftp.client.impl.SftpDirEntryIterator.next(SftpDirEntryIterator.java:120) at org.apache.sshd.sftp.client.impl.SftpDirEntryIterator.next(SftpDirEntryIterator.java:45) at org.apache.sshd.sftp.client.fs.SftpPathIterator.nextEntry(SftpPathIterator.java:111) at org.apache.sshd.sftp.client.fs.SftpPathIterator.next(SftpPathIterator.java:105) at org.apache.sshd.sftp.client.fs.SftpPathIterator.next(SftpPathIterator.java:40)

Actual behavior

java.io.UncheckedIOException: org.apache.sshd.common.SshException: Timeout expired while waiting for id=109 at org.apache.sshd.sftp.client.impl.SftpDirEntryIterator.load(SftpDirEntryIterator.java:181) at org.apache.sshd.sftp.client.impl.SftpDirEntryIterator.next(SftpDirEntryIterator.java:120) at org.apache.sshd.sftp.client.impl.SftpDirEntryIterator.next(SftpDirEntryIterator.java:45) at org.apache.sshd.sftp.client.fs.SftpPathIterator.nextEntry(SftpPathIterator.java:111) at org.apache.sshd.sftp.client.fs.SftpPathIterator.next(SftpPathIterator.java:105) at org.apache.sshd.sftp.client.fs.SftpPathIterator.next(SftpPathIterator.java:40)

Expected behavior

No timeout. The remote file is found.

Relevant log output

No response

Other information

No response

leild commented 2 months ago

org.apache.sshd.common.SshException: Timeout expired while waiting for id=10

tomaswolf commented 2 months ago

Not enough information. Upgrade from what version? Try switching on DEBUG level logging; maybe that gives some clues.