Active
Project:
Amon
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
28 Feb 2012 at 03:08 UTC
Updated:
29 Feb 2012 at 16:17 UTC
Inside of _amon_request, drupal_http_request() is used. This can be sped up by using the HTTP Parallel Request Library to issue a non blocking request. What this means is it will not wait for the response back from Amon, preventing Amon from causing too big of a performance impact due to network traffic on the local box.
httprl_request($url, array(
'headers' => array(
'Content-Type' => 'application/json',
),
'method' => 'POST',
'data' => json_encode($data),
'blocking' => FALSE,
));
$result = httprl_send_request();
Comments
Comment #1
zroger commentedVery nice. I'll look into this.
Comment #1.0
zroger commentedUpdated issue summary.