https://bz.apache.org/bugzilla/show_bug.cgi?id=58998
Bug ID: 58998
Summary: Should add to API docs to be sure to flip a bytebuffer
if it was written to before you try to send over a
websocket with sendbinary method
Product: Tomcat 7
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Documentation
Assignee: [email protected]
Reporter: [email protected]
With the send binary method API docs for tomcat in the websockets class, we
should add to the docs that "if the bytebuffer was not flipped will not send
correctly". I did this is a sendBinary method for the websockets API and spent
1.5 days debugging and could find no helpful information in the tomcat site or
docs why my sending of a bytebuffer was failing silently with.
I then had to go through the API docs of another websocket project where they
stated be sure the bytebuffer is flipped or will fail. We should also add this
to the API docs since it will cut down on debugging time for developers user
the API for the websockets sendBinary method.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]