KTOR-9267 Curl: Handle chunked websocket frames#5355
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
bjhham
left a comment
There was a problem hiding this comment.
While you're here, could you implement handling for WebSocketSession.maxFrameSize so that we have consistent handling / some safety against massive frames?
735486c to
ddde8b4
Compare
fec9286 to
c415f5c
Compare
Subsystem
kotlin-client-curl
Motivation
KTOR-9267 Curl: Incorrect WebSockets frame fragmentation
Solution
Read
meta.offsetandmeta.bytesleftto determine chunked frames. Collect frame data into a buffer and send at once.