Hi Team,
Short Question from my side regarding https://github.com/spring-projects/spring-framework/blob/22bf4df290a2f44f0ca9550e7331c17f77125d8c/spring-websocket/src/main/java/org/springframework/web/socket/adapter/jetty/JettyWebSocketHandlerAdapter.java#L121
In the last change the initialization of the ByteBuffer changed from using the limit (Standard BinaryMessage Constructor using limit) to using the max capacity which leads to a buffer which is filled up with zeros until his capacity is reached (https://github.com/spring-projects/spring-framework/commit/ed172d62692b97441be365226d2dd0973210ec69#diff-43448f6e16d92d0df476c611919c95839ad9f2874d149cf939d8f91a2824b5f3)
Is there any reason to do that and not changing the mentioned Line 121 to using limit again? In our case that leads to some troubles with protobuf from google which expects that a buffer ends with exact 1 "0"!
Thanks a lot for a discussion in advance!
Best regards,
Martin