mirror of https://github.com/lukechilds/node.git
Browse Source
When a datagram socket hasn't been bound yet, node will defer `send()` operations until binding has completed. Before this patch a `listening` listener would be installed every time `send` was called. This triggered an EventEmitter leak warning when more than 10 packets were sent in a tight loop. Therefore switch to using a single `listening` listener, and use an array to enqueue outbound packets.v0.9.9-release
Bert Belder
12 years ago
1 changed files with 14 additions and 3 deletions
Loading…
Reference in new issue