-
Notifications
You must be signed in to change notification settings - Fork 99
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
Connection events not firing in master? #9
Comments
In case it might help with debugging, I used tcpdump to get a bit more insight into this, and compared "good" and "bad" sessions, where the latter is one similar to what I reported above (one out of five requests times out). What I saw is that in both cases there's a series of five handshakes (SYN-SYN/ACK-ACK) from five sequential source ports, so I believe the server gets the connection. Then, there are two series of PSH/ACK-ACK. The first has five exchanges involving all five sequential source ports from the client, and another with only four exchanges - this time without one of the ports. That's where communication on this port stops. Then there's data exchange with more PSH/ACK packets, again, involving only four of the original five source ports the client used. Finally there's the FIN/ACK-ACK exchange, closing the connection for the four active ports. The reason the fifth port times out is probably because there's no communication on it and the operating system just shuts it down. |
Another data point: reproduces locally on both Ubuntu 13.10 and Mac OS X Mavericks. |
Hi, I experienced exactly the same issue (Node v0.10.28 on Mac OS X Mavericks). I'm wondering if it's a Node 0.10 issue? |
@paulbjensen - look at the node.js issue I referenced, it's an issue with node, not necessarily sticky-session. |
Thanks @elad. Deeper down the rabbit hole we go. |
The cause for this issue was fixed yesterday. |
Hello,
It seems like connection events aren't always fired, causing requests to timeout.
On one terminal I have this code (from the example) running:
I put it in a file called
dummy_sticky.js
and ran it with:On another terminal I'm running a little program to make a few requests in parallel. Here's the program:
(it requires the
async
,request
, andmoment
modules.)I run it:
And you can see that the first (index zero) request is not succeeding, and if I don't hit ^C the program just hangs there.
Sometimes it does succeed, though. For example, most of the times after I hit ^C and run the program again it works.
When it times out, it does so after 60 seconds.
If I run a server without passing the connection from the master to the worker, for example:
Everything works fine.
Node.JS is version 0.10.28.
Any ideas what's the cause or how to debug?
The text was updated successfully, but these errors were encountered: