You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thx for the report, though it's hard to understand what is the issue on current moment.
Can you please add frame logging on client or server side (via rsocket-java/rsocket-kotlin functionality) and post frame logs here (or via link to gist)?
As for rsocket-kotlin (on client side) you will need to add loggerFactory = PrintLogger.withLevel(LoggingLevel.DEBUG) to connector configuration.
f.e. if you are using ktor-client integration:
Good to hear that it solves issue on your side!
Overall using maxFragmentSize should not cause any issues, but overall - stick with defaults unless needed :)
Example in README just shows what is possible to configure, may be we need to cleanup it a bit to make it more robust.
Though, you report confirms that there is a bug somewhere in fragmentation logic inside rsocket-kotlin regarding handling of request stream/channel frames (likely because of additional initialRequest field, that could be handled differently).
I believe rsocket-java implementation is correct, so I think that I will setup some cross-implementation testing in future (at least for fragmentation use case).
metadata in REQUEST_STREAM is not properly encoded when
compositeMetadata
is used and it includes bothRoutingMetadata
andBearerAuthMetadata
Expected Behavior
The following requestStream should be accepted by the Spring Boot Rsocket Server
The exact same code works when sending a
requestResponse()
frameIn the Setup Frame, payload MimeType is
MessageRSocketCompositeMetadata
. Setup frame doesn't sends any metadataActual Behavior
The Server returns ERROR frame with 'metadata is malformed'
SETUP FRAME
REQUEST_RESPONSE FRAME
REQUEST_STREAM FRAME (Reported 'metadata is malformed' by the server)
Steps to Reproduce
Possible Solution
Your Environment
javar -version
) or Node version (node --version
)): JAVA 19uname -a
): Ubuntu 20.04.6 LTSThe text was updated successfully, but these errors were encountered: