(data,sock,host,port,cb)
| 28 | } |
| 29 | |
| 30 | var statsd_send = function(data,sock,host,port,cb){ |
| 31 | send_data = new Buffer(data); |
| 32 | sock.send(send_data,0,send_data.length,port,host,function(err,bytes){ |
| 33 | if (err) { |
| 34 | throw err; |
| 35 | } |
| 36 | cb(); |
| 37 | }); |
| 38 | } |
| 39 | |
| 40 | // keep collecting data until a specified timeout period has elapsed |
| 41 | // this will let us capture all data chunks so we don't miss one |
no test coverage detected
searching dependent graphs…