GithubHelp home page GithubHelp logo

Connection Timeout about paddle HOT 6 OPEN

minijackson avatar minijackson commented on August 27, 2024
Connection Timeout

from paddle.

Comments (6)

minijackson avatar minijackson commented on August 27, 2024

As a temporary workaround, you could just restart the OTP application by doing:

Application.stop(:paddle)
Application.start(:paddle)

but I'm wondering if there are a better way of handling this, like adding a reconnect function, try returning {:error, :timeout}. If you have any ideas, let me know!

from paddle.

minijackson avatar minijackson commented on August 27, 2024

I just came across something strange: the default value of the :timeout option from Erlang's eldap module (which this library is based upon) is :infinity (see here).

So it might be that the timeout is not coming from the client / server connection.

Could you give more info about your issue ? (debug logs, etc.)

from paddle.

sgeos avatar sgeos commented on August 27, 2024

We enabled debug logging for our production build. I will post them in the future.

We changed the supervision strategy to :one_for_all but it did not solve the problem. If anything is dying, I suspect it is restarted by the paddle application without reconnecting. A die on timeout or reconnect on timeout setting will probably solve our problem. Alternatively, perhaps :die, :reconnect and :restart could be options for a timeout setting, where the current :restart strategy is the default.

from paddle.

sgeos avatar sgeos commented on August 27, 2024

I'm not seeing anything in the log that is worth reporting. Is there a way to turn logging on for paddle that might be useful? For now we are restarting the whole containerized application every 30 minutes. It is a dirty fix, but it seems to be working.

from paddle.

minijackson avatar minijackson commented on August 27, 2024

I have found a way to get the :eldap module to output some log using Logger. I'm not sure if this will be very useful but we can still try.

The only way to crank the logging up for Paddle is to configure Logger to output the :debug level (which will now give us more info about what :eldap is doing).

I'll make a minor release in a short time.

from paddle.

shamanime avatar shamanime commented on August 27, 2024

This is also addressed on pull #21

from paddle.

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.