Menu

Connection Reset after a few requests

Help
Anonymous
2015-03-16
2015-03-19
  • Anonymous

    Anonymous - 2015-03-16

    Hi everyone,

    I'm currently trying to implement PHPCrawl into a simple symfony2 project. Everything seems to work fine but after a few requests (16), the browser sends me an error : ERR_CONNECTION_RESET. It happens every time I try, with every browsers.
    I'm on windows with a wamp local environment.

    I've tried setting setStreamTimeout(5) and setConnectionTimeout(10) without success. Also, in my php.ini, max_execution_time(120), memory_limit(256) and max_input_time(120) seem fine.

    If I set the request limit to 16 for example, everything works fine. More requests, it crashes...

    I have no idea how to solve that...

     

    Last edit: Anonymous 2015-03-16
  • Anonymous

    Anonymous - 2015-03-16

    Thanks I've seen that thread before, but I'm not sure how it can help me..

    My settings :

        $crawl->setTrafficLimit(0);
    
        $crawl->setRequestLimit(20);
    
        $crawl->setContentSizeLimit(0);
    
        $crawl->setStreamTimeout(10);
    
        $crawl->setConnectionTimeout(10);
    

    In that case the request limit is 20, and the browser returns a connection reset error...At 16 it works...I can't figure out what's wrong

     

    Last edit: Anonymous 2015-03-16
  • Anonymous

    Anonymous - 2015-03-16

    Every limit in apache and php have been checked and adjusted...(php.ini or httpd.conf)
    I'm totally stuck right now...any hint or idea appreciated...

     
  • Anonymous

    Anonymous - 2015-03-18

    My brother ran the script without browser reset errors in Ubuntu. So my symfony code is correct. The problem comes from my configuration...maybe some settings in my WAMP 2.5 ? I already checked everything...

     
  • Anonymous

    Anonymous - 2015-03-18

    Update : it's working fine on another machine using WAMP 2.4...I'll try a WAMP 2.5 re-install on the other one...

     
  • Anonymous

    Anonymous - 2015-03-19

    PROBLEM SOLVED !
    WAMP 2.5 fresh install didn't change a thing. But while checking the Apache error logs and searching on the web I finally stumbled on that :

    Parent: child process exited with status 3221225725 — Restarting on XAMP apache

    This problem often happens on Windows platform because of smaller Apache’s default stack size. And it usually happens when working with php code that allocates a lot of stacks.

    To solve this issue, add the following at the end of apache config file, httpd.conf

    <IfModule mpm_winnt_module="">
    ThreadStackSize 8888888
    </IfModule>

    AND restart apache.

    And it works ! That bug almost killed me ^^

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.