diff --git a/src/classes/StatsD.class.php b/src/classes/StatsD.class.php index f54e2200..958760e0 100644 --- a/src/classes/StatsD.class.php +++ b/src/classes/StatsD.class.php @@ -104,6 +104,8 @@ protected function send($data, $sampleRate=1) { { $fp = fsockopen("udp://{$this->host}", $this->port); if (! $fp) { return; } + // make this a non blocking stream + stream_set_blocking($fp, false); foreach ($sampledData as $stat => $value) { if (is_array($value))