mirror of https://github.com/lukechilds/node.git
Browse Source
Don't emit a 'connect' event on sockets that are handed off to net.Server 'connection' event listeners. 1. It's superfluous because the connection has already been established at that point. 2. The implementation is arguably wrong because the event is emitted on the same tick of the event loop while the rule of thumb is to always emit it on the next one. This has been tried before in commitv0.9.11-releasef0a440d
but was reverted again inede1acc
because the change was incomplete (at least one test hadn't been updated). Fixes #1047 (again).
Ben Noordhuis
12 years ago
3 changed files with 8 additions and 14 deletions
Loading…
Reference in new issue