Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-2131

Command output should be output immediately (not buffered) when using SSH client

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.3.0
    • None
    • karaf
    • None

    Description

      When running a long command directly on the shell, output is immediate.

      However, when connecting using SSH (using Linux OpenSSH client), output seems to be buffered. So there's no output before command is completed or SSH connection is closed.

      Same behavior when using Karaf's own client (bin/client). So this needs to be fixed on the server-side.

      For example:

      karaf_stg@luna2:~/karaf_template$ ssh -p 8122 karaf@localhost features:install -v -c soluvas-framework
      ..................... <-- looong time of silence here, then:
      Installing feature soluvas-framework 2.0.0-SNAPSHOT
      Installing feature soluvas-deps 2.0.0-SNAPSHOT
      Installing bundle mvn:org.soluvas/org.soluvas.mongo/2.0.0-SNAPSHOT
      Installing bundle mvn:org.soluvas/org.soluvas.commons/2.0.0-SNAPSHOT
      Installing bundle mvn:org.soluvas/org.soluvas.json/2.0.0-SNAPSHOT
      Installing bundle mvn:org.soluvas/org.soluvas.async/2.0.0-SNAPSHOT
      Installing bundle mvn:org.soluvas/org.soluvas.cdi/2.0.0-SNAPSHOT
      Installing bundle mvn:org.soluvas/org.soluvas.data/2.0.0-SNAPSHOT
      Installing bundle mvn:org.soluvas/org.soluvas.push/2.0.0-SNAPSHOT
      Installing bundle mvn:org.soluvas/org.soluvas.jaxrs/2.0.0-SNAPSHOT
      Installing bundle mvn:org.soluvas/org.soluvas.security/2.0.0-SNAPSHOT
      Installing bundle mvn:org.soluvas/org.soluvas.facebook/2.0.0-SNAPSHOT
      Installing bundle mvn:org.soluvas/org.soluvas.ldap/2.0.0-SNAPSHOT
      Installing bundle mvn:org.soluvas/org.soluvas.image/2.0.0-SNAPSHOT
      Installing bundle mvn:org.soluvas/org.soluvas.social/2.0.0-SNAPSHOT
      Installing bundle mvn:org.soluvas/org.soluvas.social.shell/2.0.0-SNAPSHOT
      ^^^^^ these lines are outputted all at once, after the command finishes, then the SSH connection is closed
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            ceefour Hendy Irawan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: