Uploaded image for project: 'Maven Wagon'
  1. Maven Wagon
  2. WAGON-431

wagon ssh exec's hangs with stdout > 32K

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4, 2.5, 2.6, 2.7, 2.8
    • Fix Version/s: 2.9
    • Component/s: wagon-ssh
    • Labels:
      None

      Description

      When the remote execution has stdout output > 32K ( hardcoded by jsch)
      CommandExecutorStreamProcessor hangs waiting for remote stderr end of stream which never arrive since remote shell is blocked by 32 buffer filled by stdout

      The solution is process stdout first ( instead of stderror), however we may encounter the same issue if stderr output is more than 32K which less likely to occur than stdout

      May be better to use StreamPumper from PlexusUtils to prevent blocking

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                danttran Dan Tran
                Reporter:
                dantran Dan Tran
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: