-
Notifications
You must be signed in to change notification settings - Fork 7.3k
UDP4 socket fails to bind with clustering #2194
Comments
The problem is that the cluster module only share TCP and not UDP. The worker do bind to the UDP port, but when the next worker initialize the port is all ready used. I'm not sure this is a true bug, or a documentation issue, however I will look intro it in But |
I have looked at the dgram source code. The problem is that |
Thanks for looking into this, you are correct though in that the first worker does in fact bind to the udp port. |
Confirmed. Will fix. |
Weird thing, I've confirmed I only get one worker binded (all others) but I don't get the 'on error' call... am I forgetting to activate something? Any ideas? |
Ok, at the moment I'm trying to debug UDP handles being sent through the IPC (which throws a 'Bus error 10' message). Do you think UDP handles will be supported soon? I'm still trying to figure out how to fix/work around this issue though. I apologise if the previous message doesn't make any sense :) in that case, ignore me and I'll keep debugging and will come back with more information later. |
@DiogoNeves I will first have time to look intro this myself in the upcoming week. But with just a quick look at your patch I will assume If you want to continue the work I suggest you step out of the |
@AndreasMadsen, @DiogoNeves: That's correct. See @DiogoNeves: Sorry, I may have underestimated the difficulty of this change. :-/ |
@AndreasMadsen, @bnoordhuis Thanks! :) I'm really having a lot of fun and learning a lot with all this. I will keep looking at different issues, even if it gets to temporary dead ends. I'm sure I'll submit a good patch at some point hehe :) @bnoordhuis Would you rather prefer if I look at something else? |
@DiogoNeves: By all means keep at it if you want. You should probably come hang out in #libuv because the changes to libuv would need to be discussed. |
Ok, I'll keep investigating :) I've been quite slow this week, sorry. |
hi is there an ETA on fix for clustering UDP socket? thank you |
is there any planned (soon) fix for this UDP clustering? without shared access to same socket node as a UDP server becomes severely limited as cannot scale. thanks |
Not really. It's one of those nice-to-haves that fully depend on someone having time and the inclination to fix it. |
Ben Thanks for prompt response ... However surely its way more than a "nice to have" as without it nodejs is Can we put a bounty on getting this done? What would a reasonable fee and timeframe look like? On Sun, Dec 16, 2012 at 2:38 AM, Ben Noordhuis notifications@github.comwrote:
|
It's about two days of work, give or take. As to fees, I should probably get you in touch with the right people. Do you have an email address you can be contacted at? |
Ben Then can we progress it ASAP. Graci. On Sun, Dec 16, 2012 at 3:05 AM, Ben Noordhuis notifications@github.comwrote:
|
Thanks, I'll make sure someone gets back to you. |
Hmm, is this still an active problem? The test code seems to work fine under 0.8.18 and Windows 7 64bit. Also confirmed its absence in 0.10.0 on centos. node -vv0.10.0 node test.js12 Apr 09:04:43 - starting udp server on port 1190 Maybe someone can confirm that the problem is related to OSX only? Or if its been fixed. Cheers |
UDP cluster support was added in 5e7e51c, I just forgot to close this issue. |
It appears that there is a bug with dgram in that subsequent workers fail to bind to the specified port. I did a search and it appears that a similar bug existed in the LearnBoost/cluster project in 0.6.6; LearnBoost/cluster#129
This bug exists in 0.6.2 on OSX at least. The following is some sample code that demonstrates the problem.
Running this code you see the following:
The text was updated successfully, but these errors were encountered: