You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Goldstein Lyor (JIRA)" <ji...@apache.org> on 2016/02/01 12:09:39 UTC

[jira] [Work started] (SSHD-638) Use smart buffer HEX data dump logging to accommodate large buffers

     [ https://issues.apache.org/jira/browse/SSHD-638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on SSHD-638 started by Goldstein Lyor.
-------------------------------------------
> Use smart buffer HEX data dump logging to accommodate large buffers
> -------------------------------------------------------------------
>
>                 Key: SSHD-638
>                 URL: https://issues.apache.org/jira/browse/SSHD-638
>             Project: MINA SSHD
>          Issue Type: Improvement
>            Reporter: Goldstein Lyor
>            Assignee: Goldstein Lyor
>            Priority: Minor
>
> 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.:
> {quote}
> Session#decode() packet 172 data chunk #1: 00 A3 2C 1B ...
> Session#decode() packet 172 data chunk #2: FF 33 0A 22  ...
> ...
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)