php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73795 session handler fail over not fully working
Submitted: 2016-12-20 14:57 UTC Modified: 2021-06-09 11:55 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: justin at webslice dot eu Assigned: cmb (profile)
Status: Closed Package: memcached (PECL)
PHP Version: 5.6.29 OS: Redhat 6.8
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: justin at webslice dot eu
New email:
PHP Version: OS:

 

 [2016-12-20 14:57 UTC] justin at webslice dot eu
Description:
------------
Initially I have tested with the default php-5.3.3 RH php_mod version and php-pecl-memcached-1.0.0-1.el6.x86_64.
Then I tested php56 with more-php56-php-pecl-memcached-2.2.0-7.el6.x86_64.rpm, but got the same results.

I'm testing php_memcached 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.


config used:

session.save_handler = memcached
session.save_path = "10.1.11.154:11211,10.1.11.156:11211"
memcached.sess_remove_failed=1



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.

Patches

kievlywm (last revision 2017-01-30 15:49 UTC by sample at email dot tst)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-06-09 11:55 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-06-09 11:55 UTC] cmb@php.net
The memcached bug tracker is now on Github[1].  If this is still
an issue with the current memcached version, please report there.

[1] <https://github.com/php-memcached-dev/php-memcached/issues>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 02:01:29 2024 UTC