Comments (3)
See here. You can also check for the value of Predis\Client::isConnected()
at later stages in your application but it won't tell you if the underlying socket has been closed due to a timeout or error, you get exceptions for that upon the first read/write operation on the same socket (that's how sockets work).
from predis.
Not exactly the issue I'm having. When I try to do something like $redis->connect(), and the redis server is not running, this is the warning I get:
RUN-TIME WARNING: stream_socket_client() [function.stream-socket-client]: unable to connect to tcp://127.0.0.1:6379/ (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
No amount of exception handling seems to bypass this warning.
from predis.
Standard warning or notice messages for stream_socket_client() are already suppresse with @
. I guess you have some 3rd party extension like xdebug enabled in your configuration since RUN-TIME WARNING
and HTML links to PHP functions are not something emitted by PHP itself. In that case you should tweak its configuration, there's nothing that can be done from userland code to prevent that message.
from predis.
Related Issues (20)
- RESP3: Protocol parser: RESP2 and RESP3 reader integration tests
- RESP3: Commands integration tests
- RESP3: Setup clients to handle RESP3 responses
- Cannot use 'DEL' with redis-cluster. HOT 1
- RESP3: Sharded PubSub
- Key prefix is not used for GETDEL command
- RESP3: Push notifications
- count(): Argument #1 ($value) must be of type Countable|array, int given in HGETALL HOT 9
- Question
- Subscribe to a publoop with relay crashes HOT 2
- Tracking Issue: XGROUP container commands
- Add support for missing redis command XGROUP CREATE
- Add support for missing redis command XGROUP DELCONSUMER
- Add support for missing redis command XGROUP DESTROY
- Add support for missing redis command XGROUP SETID
- Add support for missing redis command XREADGROUP
- PHP 8.2 deprecation: Use of "static" in callables is deprecated HOT 2
- Use transaction to run multiple commands atomically, but one of the commands has not been executed HOT 3
- Clients should identify themselves on connect HOT 2
- JSONSET don't include PREFIX on key.
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.