PHP+;nginx+;Yaf使用一个页面使另一个页面阻塞,nginx崩溃

PHP+;nginx+;Yaf使用一个页面使另一个页面阻塞,nginx崩溃,php,nginx,yaf,Php,Nginx,Yaf,我想使用curl获取一页内容并另存为静态html文件, 环境:Yaf+PHP5.3+nginx 当我运行代码时,页面在加载时被阻塞,几秒钟后nginx崩溃 test1控制器代码如下: class Test1Controller extends AbstractController { public function indexAction() { $ch = curl_init('http://www.alitui.com:8010/test2'); cu

我想使用curl获取一页内容并另存为静态html文件, 环境:Yaf+PHP5.3+nginx

当我运行代码时,页面在加载时被阻塞,几秒钟后nginx崩溃

test1控制器代码如下:

class Test1Controller extends AbstractController
{
    public function indexAction() {
        $ch = curl_init('http://www.alitui.com:8010/test2');
        curl_setopt(CURLOPT_RETURNTRANSFER,true);
        $content = curl_exec($ch);
        curl_close($ch);
        var_dump($content);exit;
    }
}
class Test2Controller extends AbstractController
{
    public function indexAction() {
        echo 1;exit;
    }
}
和下面的test2控制器代码:

class Test1Controller extends AbstractController
{
    public function indexAction() {
        $ch = curl_init('http://www.alitui.com:8010/test2');
        curl_setopt(CURLOPT_RETURNTRANSFER,true);
        $content = curl_exec($ch);
        curl_close($ch);
        var_dump($content);exit;
    }
}
class Test2Controller extends AbstractController
{
    public function indexAction() {
        echo 1;exit;
    }
}

此URL不可访问,除非它被IP或其他什么锁定,它是本地测试域,我在主机文件中写入。此URL不可访问,除非它被IP或其他什么锁定,它是本地测试域,我在主机文件中写入。