<?php /** * 异步同步服务(sql, function) * Created by PhpStorm. * User: chengt * Date: 2015/5/5 * Time: 23:27 */ require dirname(__FILE__) . '/../global.php'; TenYear::getInstance(); ini_set('default_socket_timeout', -1); Com_AdCache::factory()->set_timeout(0); //设置background echo "register_background\r\n"; Com_Replication::register_background(); //开始接收 echo "start receive \r\n"; Com_Queued::receive_all();