when v2 receives a message from sr3 with no size set, it will likely truncate the file #1391
Labels
bug
Something isn't working
v2compatibility
problem with sr3 and v2 work together.
v2only
only affects v2 branches.
wontfix
This will not be worked on (outside development scope)
work-around
a work-around is provided, mitigating the issue.
When v2 receives a message from sr3 where the size is not set, it seems to download a much smaller file than expected. I've observed this with HTTP at least, I'm not sure if other protocols are affected.
We already knew about this, but I don't think it's documented (I took a quick look through the open issues).
I don't think it's worth fixing. You can either use sr3 to download the file, or post the size in the message. If the size is unknown, just post (from sr3) a size much larger than the expected size and use v2 plugin
on_file_repair_size
to set the correct size after downloading.For example, this sr3 plugin can be used to set a fixed, large size:
The text was updated successfully, but these errors were encountered: