On Mar 18, 2013, at 5:01 PM, bugzi...@apache.org wrote:

> https://issues.apache.org/bugzilla/show_bug.cgi?id=54721
> 
>            Bug ID: 54721
>           Summary: RemoteEndpoint blocks indefinitely if sendObject
>                    called with BinaryStream of TextStream encoders
>           Product: Tomcat 8
>           Version: trunk
>          Hardware: All
>                OS: All
>            Status: NEW
>          Severity: critical
>          Priority: P2
>         Component: Catalina
>          Assignee: dev@tomcat.apache.org
>          Reporter: nicho...@nicholaswilliams.net
>    Classification: Unclassified
> 
> Created attachment 30076
>  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30076&action=edit
> Patch to resolve issue
> 
> If I specify a j.w.Encoder.BinaryStream<T> or j.w.Encoder.TextStream<T> as the
> encoder for my endpoint, sendObject() never completes. This is because (A)
> sendObjectByCompletion does not close the OutputStream or Reader (methods that
> accept closeable resources as arguments should not close those resources; the
> calling method should) AND (B) onResult is never called on the SendHandler in
> sendObjectByCompletion for these two cases. Patch attached. Thread dump below.

I've been busy fleshing out all kinds of problems. :-)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to