Uploaded image for project: 'Abdera'
  1. Abdera
  2. ABDERA-210

Abdera Servlet Always uses ServletOutputStream rather than the Writer interface.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.4.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      NA

      Description

      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'.

        Activity

        Hide
        jasnell James M Snell added a comment -

        Fix checked in

        Show
        jasnell James M Snell added a comment - Fix checked in

          People

          • Assignee:
            jasnell James M Snell
            Reporter:
            cestmoimia Michael Ahern
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development