Giter Club home page Giter Club logo

Comments (5)

davidwdan avatar davidwdan commented on August 29, 2024

You can create a ping by creating a topic that you publish to periodically.

from thruwaybundle.

NewOldMax avatar NewOldMax commented on August 29, 2024

I think it's little dirty, not?

from thruwaybundle.

davidwdan avatar davidwdan commented on August 29, 2024

Yes it is. The next version of Ratchet will support ping/pong, so this is just a temporary solution.

ratchetphp/Ratchet#401

from thruwaybundle.

valepu avatar valepu commented on August 29, 2024

I'm having this same issue. I launch the server from comand line and if i don't publish anything for some time (about 20-30 minutes) i get what looks like a log of all the previous calls on the console and the server just hangs (the process is active, but it doesn't accept connections anymore).
Following this suggestion i have made a topic where i publish every 5 minutes. Now it lasts some hours (about 6-7) but then the same thing happens eventually.

Is it possible to know what is causing the issue? I don't think a "keep alive" mechanism should be needed at all in the first place

I am working on a windows 10 machine using PHP 5.6 and dev-master version of the bundle (but it happened even with the latest release)

from thruwaybundle.

davidwdan avatar davidwdan commented on August 29, 2024

Fixed in v0.3.0

from thruwaybundle.

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.