File tree 1 file changed +4
-6
lines changed 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -2266,17 +2266,15 @@ redis_sock_check_liveness(RedisSock *redis_sock)
2266
2266
smart_string cmd = {0 };
2267
2267
size_t len ;
2268
2268
2269
+ /* Short circuit if PHP detects the stream isn't live */
2270
+ if (redis_stream_liveness_check (redis_sock -> stream ) != SUCCESS )
2271
+ goto failure ;
2272
+
2269
2273
/* Short circuit if we detect the stream is "dirty", can't or are
2270
2274
configured not to try and fix it */
2271
2275
if (redis_stream_detect_dirty (redis_sock -> stream ) != SUCCESS )
2272
2276
goto failure ;
2273
2277
2274
- /* Short circuit if we detect the stream has gone bad or if the user has
2275
- * configured persistent connection "YOLO mode". */
2276
- if (redis_stream_liveness_check (redis_sock -> stream ) != SUCCESS ) {
2277
- goto failure ;
2278
- }
2279
-
2280
2278
redis_sock -> status = REDIS_SOCK_STATUS_CONNECTED ;
2281
2279
if (!INI_INT ("redis.pconnect.echo_check_liveness" )) {
2282
2280
return SUCCESS ;
You can’t perform that action at this time.
0 commit comments