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

Already on GitHub? Sign in to your account

Bug? #1

wprl opened this Issue Dec 30, 2012 · 9 comments


None yet
2 participants

wprl commented Dec 30, 2012

When I attempt to send an event using response.json, my app crashes with the message:

Assertion failed: (timeout >= 0), function uv_timer_start, file ../deps/uv/src/unix/timer.c, line 55.
Abort trap: 6

What is the best way to try to debug this issue, or am I just missing something?



andrewrk commented Dec 30, 2012

can you provide a gist that demonstrates the issue?

wprl commented Dec 30, 2012

Here you are: https://gist.github.com/4411392

npm test wouldn't run until I did npm install -g eventsource. After installation, npm test gives:

connect-sse@1.0.1 test /Users/jagwio/code/sse-sockets-perf/node_modules/connect-sse
node test.js

start server...OK
checking messages...Assertion failed: (timeout >= 0), function uv_timer_start, file ../deps/uv/src/unix/timer.c, line 55.


andrewrk commented Dec 31, 2012

When I run your gist on my computer, it works fine. What version node are you using?

Also, does this gist work for you? https://gist.github.com/4416337

This tests express without the connect-sse module.

wprl commented Dec 31, 2012

I'm using node v0.8.1

When I run the gist you posted, it exits without any errors.


andrewrk commented Dec 31, 2012

I get the same error with node v0.8.1. I'll put an engines section in package.json to indicate that it depends on a later version of node.

@andrewrk andrewrk closed this in f12b077 Dec 31, 2012

wprl commented Dec 31, 2012

Thanks for helping me with that. I am now able to complete a rudimentary test comparing sending 10,000 socket.io events vs. sse events. sse performed ~3.5x faster in this limited test. I'm going to blog about it in more detail this week on http://kun.io/blog Thanks again!!


andrewrk commented Dec 31, 2012

No problem - glad it worked out for you.

wprl commented Jan 3, 2013

My initial results were with socket.io in debug mode. After fixing that, they perform about the same. If you are interested, I did a little write up here: http://kun.io/blog/39590083022/Performance-Test:-WebSockets-vs.-Server-Sent-Events-(EventSource)


andrewrk commented Jan 3, 2013

Thanks for posting a link to this. It was interesting to read.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment