Skip to content

ieof packet referred to nonexistent channel #805

@realliujiaxu

Description

@realliujiaxu

In my project, I have logic like this:

  SSHClient sshClient = new SSHClient();
  sshClient.addHostKeyVerifier(new PromiscuousVerifier());
  sshClient.connect("host");
  sshClient.authPassword("xxx", "xxx");

  for (int i = 0; i < 100; i++) {
      try (Session sshSession = sshClient.startSession()) {
          Session.Command sshCommand = sshSession.exec("echo hello");
          IOUtils.readFully(sshCommand.getInputStream());
      }
  }

  sshClient.disconnect();

However, this throws IOException "ieof packet referred to nonexistent channel", especially when connecting localhost and running in parallel after I upgrade sshj from 0.31 to 0.32.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions