Opened at 2022-07-15T14:04:55Z
Last modified at 2023-01-23T14:16:10Z
#3908 new enhancement
Detect invalid HTTP storage server responses early, close request — at Initial Version
Reported by: | itamarst | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | HTTP Storage Protocol v2 |
Component: | unknown | Version: | n/a |
Keywords: | Cc: | ||
Launchpad Bug: |
Description
When downloading shares, if the Content-Length/Content?-Range of a response doesn't match requested body length (too short means we were wrong about what server has in terms of length, or server bug, too long means server bug), we should probably just give up early.
This depends on #3907; currently we knowingly send non-matching lengths, so that needs to be fixed first.
Implementation: when deliverBody() happens the passed-in protocol gets access to the transport, allowing us to close the connection.
Note: See
TracTickets for help on using
tickets.