Thanks to visit codestin.com
Credit goes to github.com

Skip to content

session save path order matter? #1214

Open
@AnoopAlias

Description

@AnoopAlias

Expected behaviour

Probably this is the intended behavior , but its not mentioned anywhere in docs!

session.save_path = "tcp://127.0.0.1:9501?database=2&timeout=3,tcp://127.0.0.1:6379?database=2&timeout=3"

With the above setting .. php throw a redis error if port 9501 is down .But if we reverse the server order then it works. That is is multiple servers are given the first ones in the list if down throws an error. But this does not happen if the last one is down

Actual behaviour

If there are multiple servers the error must be thrown only when all servers are down

I'm seeing this behaviour on

  • OS: CentOS7
  • Redis: redis-3.2.3-1
  • PHP: php5.6
  • phpredis:3.1.3

Steps to reproduce, backtrace or example script

; Load redis php extension
extension=redis.so

; Redis session store backend
session.save_handler = redis
session.save_path = "tcp://127.0.0.1:9501?database=2&timeout=3,tcp://127.0.0.1:6379?database=2&timeout=3"

I've checked

  • There is no similar issue from other users
  • Issue isn't fixed in develop branch

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions