tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard M. Lewis Ship (JIRA)" <j...@apache.org>
Subject [jira] Closed: (TAP5-1116) Live lock when using compressed and virtual assets due to ByteArrayOutputStream being synchronized
Date Wed, 28 Apr 2010 02:46:32 GMT

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

Howard M. Lewis Ship closed TAP5-1116.
--------------------------------------

    Fix Version/s: 5.2.0
       Resolution: Fixed

> Live lock when using compressed and virtual assets due to ByteArrayOutputStream being
synchronized
> --------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1116
>                 URL: https://issues.apache.org/jira/browse/TAP5-1116
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.2.0, 5.1.0.8
>            Reporter: Howard M. Lewis Ship
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.2.0
>
>
> VirtualAssetStreamer in 5.1 and StackAssetRequestHandler in 5.2 are both affected by
this bug.  The scenario is many concurrent threads but slow connections; one thread starts
to write buffered content (buffered inside a ByteArrayOutputStream) to a client; BAOS.writeTo(OutputStream)
is synchronized: while that is occuring, no other thread can write that buffered content to
any client.
> Solution is to not use ByteArrayOutputStream is a content buffer; instead create a class
that tracks the content inside a byte array.

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


Mime
View raw message