Giter Club home page Giter Club logo

Comments (3)

tlunter avatar tlunter commented on July 20, 2024

Given that we run all of our HTTP requests through Excon, I'm not sure if there is a way to run an Excon request forever. I think the timeout property that corresponds is read_timeout and it's applied on the Excon connection. I haven't taken a look into it, but it could be possible to just set it to something sufficiently large that it never seems to end?

from docker-api.

tlunter avatar tlunter commented on July 20, 2024

Hmm, now that I'm looking at the source, it seems Excon is just using the Ruby module Timeout, which if given a value of 0 or nil, won't ever timeout. Perhaps try setting:

Docker.options = {:read_timeout => 0}

This should technically work!

Edit: Did not mean to close, sorry!

from docker-api.

jsierles avatar jsierles commented on July 20, 2024

This seems to work, so I'll close it out. Thanks for the gem, very useful!

from docker-api.

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.