[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlrpc-dev
Subject:    [jira] Resolved: (XMLRPC-173) XmlRpcCommonsTransport logs one byte
From:       "Jochen Wiedmann (JIRA)" <jira () apache ! org>
Date:       2011-01-24 23:23:45
Message-ID: 19352217.173851295911425893.JavaMail.jira () thor
[Download RAW message or body]


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

Jochen Wiedmann resolved XMLRPC-173.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 3.1.4
         Assignee: Jochen Wiedmann

Applied, thank you!


> XmlRpcCommonsTransport logs one byte at a time
> ----------------------------------------------
> 
> Key: XMLRPC-173
> URL: https://issues.apache.org/jira/browse/XMLRPC-173
> Project: XML-RPC
> Issue Type: Bug
> Affects Versions: 3.1.2
> Reporter: Brandon DuRette
> Assignee: Jochen Wiedmann
> Priority: Minor
> Fix For: 3.1.4
> 
> 
> In XmlRpcCommonsTransport, when the isUsingByteArrayOutput(config) = true branch is \
> taken, the resulting logging is nearly impossible to understand, because each \
> character (byte actually) is logged in a separate log entry. This occurs because \
> the FilterOutputStream's implementation of write( byte[], int, int ) and write( \
> byte[] ), just iteratively invoke write( byte ) -- and the underlying output stream \
> logs each byte.   To fix, just add the following overrides to the anonymous \
> FilterOutputStream subclass: public void write( byte[] b, int off, int len ) throws \
> IOException { // Override to delegate directly -- improves performance and helps \
> make log readable. out.write( b, off, len );
> }
> public void write( byte[] b ) throws IOException {
> // Override to delegate directly -- improves performance and helps make log \
> readable. out.write( b );
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic