Giter Club home page Giter Club logo

Comments (2)

rkodev avatar rkodev commented on June 29, 2024

Hi @meain, following up on the question, we do have some work in progress that should introduce functionality for large file uploads as mentioned here microsoftgraph/msgraph-sdk-go-core#12.

For now, if you want to execute a long running operation, you do need to use a context.WithTimeout to override the current deadline, you can specify a very large duration i.e 5 minutes, or setup the same at client level.
Setting a 0 timeout at the client level will force you to provide timeouts for all requests since 0 at client level acts differently at context level. It is not possible to remove timeouts on all the request as this is generally not good practice.

from kiota-http-go.

meain avatar meain commented on June 29, 2024

Setting a 0 timeout at the client level ...

My bad, I was not clear. The question was regarding setting a 0 timeout for specific requests. I do understand that setting it globally might not be sound idea. What we have currently is to set a large timeout for the specific request.

I would also like to highlight the fact that as of now setting http timeout to 0 will cause the requests to fail as it will set deadline to 0 time units into the future.

from kiota-http-go.

Related Issues (7)

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.