Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-638

Use smart buffer HEX data dump logging to accommodate large buffers

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.2.0
    • None

    Description

      The current code logs at TRACE level the raw contents of packets and their data. Sometimes, these packets can be quite big, so a large string is created in memory, since the entire data is logged into a single message. The idea is to break down the data into smaller chunks (e.g., up to 64/128/etc...) bytes per line and log each of them separately with some indication - e.g.:

      Session#decode() packet 172 data chunk #1: 00 A3 2C 1B ...
      Session#decode() packet 172 data chunk #2: FF 33 0A 22 ...
      ...

      Attachments

        Issue Links

          Activity

            People

              lgoldstein Lyor Goldstein
              lgoldstein Lyor Goldstein
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: