Skip to content

Commit

Permalink
fd leak on double socket open, single socket close
Browse files Browse the repository at this point in the history
  • Loading branch information
msilvey committed Apr 6, 2011
1 parent 3704035 commit 0ade323
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/statsd.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ StatsD.prototype.send = function (data, sample_rate) {
else {
sampled_data=data;
}
var client = dgram.createSocket('udp4');
for (stat in sampled_data) {
send_data = stat+":"+sampled_data[stat];
send_data = new Buffer(send_data);
Expand Down

0 comments on commit 0ade323

Please sign in to comment.