Re: XHR with large payload times out
| From: | Aziz Saleh | Date: | Tue, 22 Sep 2020 11:39:42 +0000 |
| Subject: | Re: XHR with large payload times out | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-327330@lists.php.net to get a copy of this message | ||
Try playing around with these settings (you seem to already have 2 set):
max_input_time
upload_max_filesize
post_max_size
memory_limit
On Mon, Sep 21, 2020 at 3:41 PM Ed Greenberg <edg@greenberg.org> wrote:
> I have an installation of PHP74 using PHP-FPM where PHP-FPM times out on
> XHR post requests when the payload (json) is larger than about 130K of
> text. Actually, on the last test, 138567. If I reduce the size of the
> payload, I can submit just fine.
>
> Note that this all works with php 7.2.
>
> Environment is Centos 7, apache 2.4 and PHP74, installed from both remi
> and on another vm from ius. Both of these installations exhibit the same
> behavior.
>
> I've tried this on both sockets and TCP port 9000. When I tried it on TCP,
> I was able to run tcpdump and capture the traffic. Wireshark displayed the
> TCP stream and there were characters going from apache to php-fpm, and ack
> packets going the other way, but not a single data packet was captured
> coming from php-fpm in that TCP session.
>
> Recentlyl php-fpm logged that
> WARNING: [pool www] child 28337 exited with code 124 after 13504.797955
> seconds from start
> I reviewed bug 74093 which discussed changing the error code from a
> certain timeout from 1 to 124, but no indication of why things time out.
> Google makes me thing that error 124 happens in a variety of cases.
>
> On the most recent run, php-fpm's error log did not report a 124, but
> rather...
> [21-Sep-2020 14:59:14] NOTICE: Terminating ...
> [21-Sep-2020 14:59:14] NOTICE: exiting, bye-bye!
> [21-Sep-2020 14:59:14] NOTICE: fpm is running, pid 446
> [21-Sep-2020 14:59:14] NOTICE: ready to handle connections
> [21-Sep-2020 14:59:14] NOTICE: systemd monitor interval set to 10000ms
>
> Nothing is logged in the slow log. Nothing logged in www-error.log
>
> I've reviewed the php.ini, php-fpm.conf and www.conf. I don't see
> anything regarding uploads other than:
> upload_max_filesize = 2M
>
> I've set:
> post_max_size = 500M
> (it was 100M) and I was sure I had found it, but no luck. It's behaving
> the same way (after restarting both httpd and php-fpm.)
>
> Eventually, the request returns 503. This takes at least 20 minutes. My
> guess is that it's not coming back. Once the request times out, I get
> [proxy_fcgi:error] [pid 32350:tid 140324214953728] (70007)The timeout
> specified has expired: [client xxx.xxx.xxx.xxx:63388] AH01075: Error
> dispatching request to : (then the referrer.)
>
> I can't think of anything else to tell. The bottom line is that we can't
> process expected payloads, so can't roll out 7.4. 7.2 is going end of life,
> so I need to solve this.
>
> Any help appreciated.
>
> Ed Greenberg
>