Work around PHP bug of liveness checking#643
Work around PHP bug of liveness checking#643michael-grunder merged 1 commit intophpredis:developfrom meitu:develop
Conversation
|
This is going to make a lot of people very happy. I'll test this locally and get it merged. Nice find! |
|
@michael-grunder |
|
@michael-grunder Now my mate @git-hulk has proofed that it is exactly has this problem by throwing 'read error on connection' exception with errno which showed it is EAGAIN(11). thanks to @git-hulk ! |
|
It takes too long too to merge this pr. @michael-grunder I'd like to help if you have some problems. |
|
Many apologies for the long delay. Tested and worked great. Merged! |
|
Apologies for the skepticism, but I want actual proof that this fixes #70 (e.g. scrollback that shows correct behavior in test scripts). It appears there are several contexts where issue #70 was reported, and notably many of the reports were related to PHP-FPM coordination of resources and sockets across multiple processes. Was this change tested against any of the examples where threading and forking could reproduce the bug? |
|
Sorry I didn't intend to close #70 by merging this request. It may very well fix the problem for certain cases however. Reopened. |
|
@michael-grunder thanks! |
I think this patch may fix #70 .
There are two main reason to cause "read error on connecion".
have a false positive judgement when a connection is indeed closed.
You can reproduce it easily
php test.phpclient killthe test connection