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
I am trying to use httpun-ws as a websocket client (through the latest master version of piaf).
When recieving messages with a length of >= 64K, the message gets cut off at the beginning.
I investigated a bit and I think the error is originating from the payload_offset_of_bits function, which maybe computes the length offset too large.
I added a few logs, which give me the following values:
The length_offset seems a bit excessive, as for smaller messages it is 0 or 2.
The length computed with let length = bits land 0b01111111 in is "127". As soon as I reduce the length of the message to less than 64K (so the length is "126" or less), everything works fine.
The text was updated successfully, but these errors were encountered:
I am trying to use httpun-ws as a websocket client (through the latest master version of piaf).
When recieving messages with a length of >= 64K, the message gets cut off at the beginning.
I investigated a bit and I think the error is originating from the
payload_offset_of_bits
function, which maybe computes the length offset too large.I added a few logs, which give me the following values:
The length_offset seems a bit excessive, as for smaller messages it is
0
or2
.The length computed with
let length = bits land 0b01111111 in
is "127". As soon as I reduce the length of the message to less than 64K (so the length is "126" or less), everything works fine.The text was updated successfully, but these errors were encountered: