[SOLVED] PHP responses spontaneously stop working

Started by AyrA, February 28, 2018, 11:54:23 AM

Previous topic - Next topic

AyrA

This issue has been resolved by updating PHP to V 7.2


I've been stumped by this for some time now.

Responses sent with PHP occasionally stop working after approximately 5MB has been sent. The exact amount is different each time you load a page. This only happens with content served by PHP and not static files. After being stuck for a while the connection simply closes. I assume PHP hits the 30 second timeout and then exits.

The problem is inconsistent though

This 10 MB page works fine (mostly text, uses php output buffer): https://cable.ayra.ch/emoji/plain.php
The exact same page with gzip encoding fails with the symptoms stated above (php output buffer with gzip handler): https://cable.ayra.ch/emoji/index.php

I am using Apache 2.4.27 with PHP 7 via FastCGI on Windows 7 x64.

Is there some configuration I am missing? I am not sure if this is a problem with the interface between server and PHP or if it is a PHP issue. I found surprisingly little online about this.