Code Monkey home page Code Monkey logo

Comments (1)

thomasvl avatar thomasvl commented on June 2, 2024

So the change you reference moved a user agent calculation off to a worker queue allowing query starting to not block for as long. I.e. - there's a timing change on how fast the start returns vs. when the networking might actually start.

Given the quoted error you are seeing, my guess if you've got a race that you've always had and the timing change just exposed it. The file you are trying to upload was changed between the start call and the completion of the whole upload request, and the update code paths not catch that where as before they didn't.

Generally speaking, you don't want to be mutating a file while you are trying to upload it as then you don't really know what state is getting sent to the server (we don't/can't assume there is space to buffer the file any place). If you are trying to upload a log file or something that you do want to change with time, you'll need to do the buffering your selfย โ€“ i.e. - roll to a new file at the start of each upload and delete the old after completion, or maybe copy the file each time you start an upload, etc.

from google-api-objectivec-client-for-rest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.