-
Notifications
You must be signed in to change notification settings - Fork 38.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot send partial message with JettyWebSocketSession #34088
Comments
I am not sure about the reason, but FWIW tests are green when doing this change. @OPeyrusse I am not sure to understand "From basic testing, it seems that calling it is still not complying", could you please elaborate? |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
@sdeleuze Yes. I haven't looked at
With a spring test application backed by Jetty, we were having this problem where we could not send partial messages. In our test setup, we are trying to send a 40MB message - to force the chunking and usage of partial messages. That is also why my question is suggesting that this may be done on purpose, knowing that jetty implementation still does not support partial message, for some reason. I completely understand that the above is mostly words. As you seem as puzzled as I am and you seem to think that it is a bug more than a feature, I will try to build a reproduction example in the coming day (after the new year festivities 🎉 ) Cheers |
As we can see in the code snippet below, it is not possible to send
TextMessage
whereisLast
is set to false.spring-framework/spring-websocket/src/main/java/org/springframework/web/socket/adapter/jetty/JettyWebSocketSession.java
Lines 218 to 220 in 43ff6d9
spring-framework/spring-websocket/src/main/java/org/springframework/web/socket/TextMessage.java
Lines 62 to 65 in 43ff6d9
However, the API exists in Jetty, in the form of
Session#sendPartialText(String, boolean, Callable)
. Is there any reason for not using it?https://github.com/jetty/jetty.project/blob/jetty-12.0.x/jetty-core/jetty-websocket/jetty-websocket-jetty-api/src/main/java/org/eclipse/jetty/websocket/api/Session.java#L99-L110
From basic testing, it seems that calling it is still not complying, but I may have made boggus changes and broken the code.
Thank you for any reply
The text was updated successfully, but these errors were encountered: