Giter Site home page Giter Site logo

Comments (4)

jasonjoo2010 avatar jasonjoo2010 commented on July 21, 2024 1

@pinguo-niulingyun

Yeah, the problem exists in function "redis_sock_disconnect", something like this:

`PHPAPI int redis_sock_disconnect(RedisSock *redis_sock TSRMLS_DC)
{
if (redis_sock == NULL) {
return 1;
}

redis_sock->dbNumber = 0;
if (redis_sock->stream != NULL) {
        if (!redis_sock->persistent) {
            redis_sock_write(redis_sock, "*\r\n$4\r\nQUIT\r\n" _NL, sizeof("*\r\n$4\r\nQUIT\r\n" _NL) - 1 TSRMLS_CC);
        }`

The original string is simply "QUIT" which is not obey the text protocol.
you should fix the source in your redis extension source code and recompile it to your dist.

from corvus.

doyoubi avatar doyoubi commented on July 21, 2024

Thanks for reporting this.
Do you know which command you're sending to corvus when encountering this error?
Is your php client multi-threaded?
Does the same error message get printed again and again?
Need more information to figure out what's going on.

from corvus.

viaweb3 avatar viaweb3 commented on July 21, 2024

php客户端是单线程短连接,会一直打印这个错误,由于是短连接,应该是socket关闭时的quit指令。

from corvus.

doyoubi avatar doyoubi commented on July 21, 2024

@pinguo-niulingyun 请问可以稳定复现吗? 求复现方法 (php版本, phpredis版本, 相关代码).

In case someone also has the same problem, it would be great if you can provide the way to reproduce it.

from corvus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.