Comments (6)
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.
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.
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.
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.
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.
This is also addressed on pull #21
from paddle.
Related Issues (20)
- Paddle.authenticate() throwing "no match" errors HOT 4
- Uncaught exception HOT 2
- Feature: Paddle.authenticate() with optional post auth filter
- Paddle enlève la possibilité de passer une liste d'hôtes à eldap. HOT 1
- Ajouter un flag inet6 HOT 3
- Debug help? Problem w/paddle or underlying eldap? HOT 1
- modify object with full DN HOT 5
- encoding issue HOT 2
- Is there a way to manage pagination of results? HOT 1
- Application exits when LDAP is not reachable HOT 4
- How to declare LDAPTLS_REQCERT=never in configuration HOT 4
- password change? HOT 2
- No success in class generation HOT 4
- Caracter with accent error HOT 1
- Add tutorials HOT 1
- authenticate assumes all users in one ou, always uses uid attribute HOT 1
- Allow empty MUSTs / MAYs in schema parser
- no function clause matching errors
- Ability to configure SSL certificates for LDAPS HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paddle.