Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event not fired after long period of time #4

Open
eightlines opened this issue May 15, 2016 · 4 comments
Open

Event not fired after long period of time #4

eightlines opened this issue May 15, 2016 · 4 comments
Labels

Comments

@eightlines
Copy link

I've set up a Socket.IO server which relay's messages from the client (mobile device) to an OF application. The communication works initially when the server is started, but after a time period (say, 12 hours) the communication fails from the server to the OF side. The client-server communication continues to report console.log statements from the server side but the OF app doesn't receive an event.

A paired down version of the code is available here:
https://gist.github.com/eightlines/a5f57f7a61731a913cb3c0ff33081085

@hugohil hugohil added the bug label May 15, 2016
@hugohil
Copy link
Member

hugohil commented May 15, 2016

Hi @eightlines,

The server hangs up without any error ? Could you provide some logs by any chance ?
What OS runs the OF app ?

In the meantime, I'll set up a test for a long period usage and see what I get.

@hugohil
Copy link
Member

hugohil commented May 15, 2016

By the way, by looking at your code sample, I'm guessing that you could be interested in the spacebro suite we are currently building.
Spacebro is a socket.io server that handles redistribution of events that clients emits. It has an ofx client too. Everything is automatically connected through Avahi and mdns. We use it in production and it's working quite well, despite being still in an early development stage.

If you want to discuss about it we'd love to do so, but since this is not relevant to your issue we should just do this somewhere else.

@eightlines
Copy link
Author

I've got the server and OF app running on a RPi3 with Raspbian Jessie installed.
(Linux raspberrypi 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux)
Node v6.0.0.
OpenFrameworks 0.9.3.
Express.js v4.13.4.
Socket.io 1.4.5.

I was logging the cursor movement but after a longer duration I simply stop receiving the event notifications. Should the event listeners be removed if the OF app disconnects? (I'm not getting notifications that the app is disconnecting, just want to be thorough)

Thanks for letting me know about Spacebro, looking into it now. I should add I really like this add-on, when it works it works really well!

@emmanuelgeoffray
Copy link
Member

Hi @eightlines ,
I'm glad you like this addon.
I understand you have an issue after a long period of time, which makes it hard to track.
Can you try do run a simple example of socket.io-client-cpp on the RPi3?
If you experience the same issue, it means it's an issue with the lib itself.

Thanks,
e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants