Open RJ opened 3 weeks ago
I'm using streaming, and if i send a chunk larger than 2048, it's truncated. I get sent a Part which is 2048 long, even if the server sent a larger chunk. (which then doesn't deserialize properly as it's truncated)
due to hardcoded buffer size here: https://github.com/emilk/ehttp/blob/master/ehttp/src/streaming/native.rs#L57
i don't think it's possible to know if a received Part was truncated or was simply exactly 2048 long originally.
not a real fix, but i doubled the size to "fix" my problem, and added a warning
https://github.com/rj/ehttp/blob/chunkier/ehttp/src/streaming/native.rs#L57
I'm using streaming, and if i send a chunk larger than 2048, it's truncated. I get sent a Part which is 2048 long, even if the server sent a larger chunk. (which then doesn't deserialize properly as it's truncated)
due to hardcoded buffer size here: https://github.com/emilk/ehttp/blob/master/ehttp/src/streaming/native.rs#L57
i don't think it's possible to know if a received Part was truncated or was simply exactly 2048 long originally.