Giter Site home page Giter Site logo

Comments (8)

lsmith77 avatar lsmith77 commented on June 2, 2024

btw .. i just spend 2-3 hours trying to figure this out, so i decided to open the ticket before i spend even more time on this and it turns out its just some setting that i am not aware of ..

from predis.

nrk avatar nrk commented on June 2, 2024

Did you try to use Predis alone without relying on RedisBundle? Predis let exceptions propagate higher up the call chain, and it doesn't handle automatic connection retries. I've tried with various tests using different versions of PHP to spot possible bugs in Predis but I couldn't reproduce your issue.

from predis.

lsmith77 avatar lsmith77 commented on June 2, 2024

no havent tried a pure predis setup. will try that later.

@snc do you have an idea?

Lukas

On 28.05.2011, at 11:39, nrk [email protected] wrote:

Did you try to use Predis alone without relying on RedisBundle? Predis let exceptions propagate higher up the call chain, and it doesn't handle automatic connection retries. I've tried with various tests using different versions of PHP to spot possible bugs in Predis but I couldn't reproduce your issue.

Reply to this email directly or view it on GitHub:
#30 (comment)

from predis.

nrk avatar nrk commented on June 2, 2024

I've just tried using the latest commits of Predis + RedisBundle + Symfony2 to build a really basic application that solely connects to Redis to call INFO, but everything worked as expected with an instance of Predis\ConnectionException being thrown (the strack trace in development mode doesn't show anything weird too). I'm can't really imagine what's going wrong with your environment...

from predis.

snc avatar snc commented on June 2, 2024

I configured a connection with host 10.255.255.1 to simulate a connection timeout. Then I set both connection_timeout and read_write_timeout to 10 and the symfony debug toolbar shows something above 10000ms. When changing the value to 1 it's around 1500ms.

The stack trace is:

  • in /var/www/dev/webs/sf2project/vendor/predis/lib/Predis/Network/ConnectionBase.php at line 86
  • at ConnectionBase ->onConnectionError ('Connection timed out', '110') in /var/www/dev/webs/sf2project/vendor/predis/lib/Predis/Network/StreamConnection.php at line 46
  • at StreamConnection ->tcpStreamInitializer (object(ConnectionParameters)) in /var/www/dev/webs/sf2project/vendor/predis/lib/Predis/Network/StreamConnection.php at line 30

So I can't reproduce it, too.

from predis.

lsmith77 avatar lsmith77 commented on June 2, 2024

OK thanks guys. I will try to isolate the code until I can reproduce your results.

from predis.

lsmith77 avatar lsmith77 commented on June 2, 2024

sorry guys .. indeed the issues was else where .. will isolate the issue before screaming next time ..

from predis.

nrk avatar nrk commented on June 2, 2024

@lsmith77 don't worry, no problem :-)

from predis.

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.