Skip to content

what if file size changed between Content-Length calculation and sending data out? #712

Closed
@crusader-mike

Description

@crusader-mike

When sending data out SDK reads the file (stream) until data runs out (according to my understanding of code) -- but content-length has to be calculated before that.

I am not particularly versed in HTTP (or related layer SDK uses to talk HTTP), but what is going to happen if said file suddenly grows bigger before we reads it in it's entirety?

What if it grows smaller?

Did I discover a race condition that could lead to hanging requests, incorrect data at the end of the object and other interesting effects?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions