|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73788 session handler fail over not fully working
Submitted: 2016-12-19 16:46 UTC Modified: -
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: justin at webslice dot eu Assigned:
Status: Open Package: memcache (PECL)
PHP Version: 5.6.29 OS: Redhat 6.8
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2016-12-19 16:46 UTC] justin at webslice dot eu
Initially I have tested with the default php-5.3.3 RH php_mod version.
Also compiled version 3.0.8 of php_memcache for it.
Then I tested php56 with rh-php56-php-pecl-memcache-3.0.8-12.el6.x86_64, but got the same results.

I'm testing php_memcache with 2 memcache backends.
I have a script running that creates a session though php and than checks with memcached-tool if both memcached backends have this session.

I use repcached als memcached backend.

This works fine.
But when I stop one of the memcache backends I see that the server with memcached stopped still regularly is called to set the session and it is not retried on the online memcached service, meaning setting this session fails.

I tried tuning 'retry_interval' to see if it has impact, is does not.

session.save_handler = memcache
session.save_path = "tcp://,tcp://"

Test script:
if needed let me know.

Expected result:
The remaining memcached backend should have the session set.

Actual result:
The remaining memcached backend does not have the session set.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-03-09 14:04 UTC] stefan at yellowfox dot net
Same here on Ubuntu 16.04 with memcache Version: 3.0.9-dev
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Jan 20 16:01:23 2021 UTC