Friday, 15 January 2010

Performance Issue with Asynchronous PHP-Curl Request -


The purpose of the following script is to send an asynchronous PHP-curl request for a server. I am using the "Fire and Mistake" technology where a curl request is sent to the server with TIMEOUT_MS set 100 . The main process. FPP will proceed as there is a delay of just 100 milliseconds and the sendMe.php main process. Without delay in executing the FTP script, server will send curl to C.

I used another script (benchmarking.fp) to print the execution time of firing to overall processes.

benchmarking.php

  $ time_start = microtime (true); Server-B (mainProcess.php) for posting PHP-curls $ time_end = microtime (true); $ Time = $ time_end - $ time_start; Echo $ time;  

Initially, $ time is low, but as I constantly benchmarking. FTP increases to $ times Resetting Apache Server (Server B) is the only option so that the $ Time variable can be redefined again. Therefore, there is something to do with handling resources or connection to PHP. Any suggestions or workarounds related to the problem will be appreciated.

Illustration of processes Enter image details here

Fire and References for Forgate Technologies:


No comments:

Post a Comment