Coder Social home page Coder Social logo

Comments (8)

walkor avatar walkor commented on May 18, 2024

服务端返回400的时候,同时http包体也会返回一个字符串,贴下包体内容吧

from phpsocket.io.

zoujingli avatar zoujingli commented on May 18, 2024

{"code":1,"message":"Session ID unknown"}
经检查,sid会变化,-d的时候

from phpsocket.io.

zoujingli avatar zoujingli commented on May 18, 2024

如果仅仅是php start是没有问题的

from phpsocket.io.

walkor avatar walkor commented on May 18, 2024

看起来是服务端业务代码发生了致命错误导致的
可以看下workerman.log看看是否有业务异常

from phpsocket.io.

zoujingli avatar zoujingli commented on May 18, 2024

2016-07-24 00:27:07 pid:24336 WORKER EXIT UNEXPECTED
2016-07-24 00:27:07 pid:31254 worker[PHPSocketIO:24336] exit with status 2048

from phpsocket.io.

zoujingli avatar zoujingli commented on May 18, 2024

正常的情况
php index.php start
php index.php start &
nohup php index.php start
nohup php index.php start &
导常的情况
php index.php start -d

from phpsocket.io.

zoujingli avatar zoujingli commented on May 18, 2024

是数据库查询问题,-d之后 Query error: MySQL server has gone away - Invalid query

from phpsocket.io.

walkor avatar walkor commented on May 18, 2024

不要在主进程直接初始化数据库连接,在on(xxx, fun)回调中初始化就没问题了

from phpsocket.io.

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.