Ignore:
Timestamp:
May 13, 2016, 10:04:12 AM (4 years ago)
Author:
joamuran
Message:

version 4.4.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin-center/trunk/fuentes/admin-center.install/usr/share/admin-center/n4d.php

    r1312 r1512  
    77// require_once('php_lib/logListener.php');  -> S'utilitza?
    88// use logListener;  -> S'utilitza?
     9
     10
     11// Class for make n4d calls asyncronous
     12/*class n4dAsync extends Thread {
     13    public function run($method, $args) {
     14        n4d($method, $args);
     15    }
     16}*/
     17// End async
     18
    919
    1020if(!session_id()) session_start();
     
    3444    curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
    3545    curl_setopt($ch, CURLOPT_POSTFIELDS, $request);
     46   
     47    curl_setopt($ch, CURLOPT_FRESH_CONNECT, true);  // async
     48    curl_setopt($ch, CURLOPT_TIMEOUT, 1);       // async
    3649 
    3750    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
     
    4154 
    4255    $data = curl_exec($ch);
     56    curl_close($ch);
     57   
    4358    error_log(curl_errno($ch));
    4459    if (curl_errno($ch)) {
     
    86101   
    87102  n4d($method, $args);
     103  //$n4d_async = new n4dAsync();
     104  //$n4d_async ->start($method, $args);
    88105 
    89106} catch(Exception $e){
Note: See TracChangeset for help on using the changeset viewer.