https://bz.apache.org/bugzilla/show_bug.cgi?id=66575

Simon Baslé <simon.ba...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #2 from Simon Baslé <simon.ba...@gmail.com> ---
Sorry if I came across as a little blunt or if it sounded like I was reporting
something just for the sake of perceived correctness. I should have focused on
the fact and let you decide the way forward accordingly, I really just wanted
to be thorough and helpful.

Also, please disregard my comment about unguarded `array()` calls in other
places, I expect that in most cases the buffers are created by Tomcat so code
can assume that these are heap buffers (not direct, not read-only).

But this is indeed based on actual use, according to a report from a Spring
Framework user.

Spring sends a read-only `ByteBuffer` to a WebSocket endpoint via
`RemoteEndpoint.Async#sendBinary`. The user reports that with Tomcat this leads
to a `ReadOnlyBufferException` from the `PerMessageDeflate`.

>From what I can see, the `ByteBuffer` passed to the endpoint is passed along to
`Transformation`s which in this case includes the `PerMessageDeflate`. It ends
up being used as the _input_ to the `Deflater`.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to