You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by "James M Snell (JIRA)" <ji...@apache.org> on 2009/05/04 23:32:30 UTC

[jira] Resolved: (ABDERA-210) Abdera Servlet Always uses ServletOutputStream rather than the Writer interface.

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

James M Snell resolved ABDERA-210.
----------------------------------

    Resolution: Fixed

Fix checked in

> Abdera Servlet Always uses ServletOutputStream rather than the Writer interface.
> --------------------------------------------------------------------------------
>
>                 Key: ABDERA-210
>                 URL: https://issues.apache.org/jira/browse/ABDERA-210
>             Project: Abdera
>          Issue Type: Bug
>    Affects Versions: 0.4.0
>         Environment: NA
>            Reporter: Michael Ahern
>            Assignee: James M Snell
>
> The AbderaServlet always uses the 'Abdera Servlet Always uses ServletOutputStream rather than Writer interface.  This leads to unnecessary buffering of data.
> Further down the stack call this leads to issues with 'SimpleResponseContext' and its derivatives, where by the 'OutputStream' is wrapped by a 'OutputStreamWriter' class.   For example, since the 'OutputStreamWriter' is buffering data, users of the 'SimpleResponseContext' are always required to 'flush()' the output stream.  
> Users of the 'SimpleResponseContext' can get burned by because the OutputSteamWriter not getting flushed.
> One intermediate solution is to have the 'SimpleResponseContext' automatically flush the 'OutputStreamWriter'.

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