Comments (8)
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.
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.
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.
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.
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.
OK thanks guys. I will try to isolate the code until I can reproduce your results.
from predis.
sorry guys .. indeed the issues was else where .. will isolate the issue before screaming next time ..
from predis.
@lsmith77 don't worry, no problem :-)
from predis.
Related Issues (20)
- Cache configuration objects (to support memory, number of keys, etc)
- [v3] cherry-pick opt out setinfo for v3 HOT 1
- Update CLIENT-SETINFO to support suffixes HOT 1
- Missing BITFIELD_RO support HOT 1
- psubscribe seems to swallow exit, exceptions, disconnect, quit calls HOT 4
- Add support for GEOSHAPE index fields and WITHIN and CONTAINS query operators
- Error while writing bytes to the server HOT 3
- Error on RPOP expects exactly 1 argument, 2 given HOT 2
- Explain `expireResoluton` for `SET` HOT 1
- Improve connection speed by running fewer commands
- Question: the `ClientInterface::eval` signature and PhpRedis HOT 1
- Connect to Sentinel with username: how to implement right ? HOT 3
- Add support for HSCAN [NOVALUES]
- Add command filter for CLIENT KILL to support maximum age via [MAXAGE] option
- Support XREAD, XREADGROUP reading from last message of stream
- Supporting redis unstable commands
- Consider master-link-status state when selecting slaves
- PSR-7 compatible stream abstraction HOT 4
- Cannot use 'EVAL_RO' with redis-cluster HOT 2
- unexpected result using plain Redis queries in PHP using predis
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 predis.