You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Maximum execution time exceeds if the request is from an IPv6 address while processing Reverse Proxy IP.
I have set cloudflare IPs for Reverse Proxy IP list and I saw a few errors today on my site. Checking the access_logs with error timestamps reveals that these requests were from IPv6 addresses and were all failing with max execution time errors.
I was only able to replicate the issue by requesting my site with http://ipv6-test.com once since I don't have an IPv6 address.
PHP error_log
[11-Oct-2020 12:54:48 UTC] PHP Fatal error: Maximum execution time of 180 seconds exceeded in /application/system/HTTP/Request.php on line 200
[11-Oct-2020 13:43:07 UTC] PHP Fatal error: Maximum execution time of 180 seconds exceeded in /application/system/HTTP/Request.php on line 209
[11-Oct-2020 14:28:52 UTC] PHP Fatal error: Maximum execution time of 180 seconds exceeded in /application/system/HTTP/Request.php on line 195
CodeIgniter log
CRITICAL - 2020-10-11 12:54:48 --> Maximum execution time of 180 seconds exceeded
#0 [internal function]: CodeIgniter\Debug\Exceptions->shutdownHandler()
#1 {main}
CRITICAL - 2020-10-11 13:43:07 --> Maximum execution time of 180 seconds exceeded
#0 [internal function]: CodeIgniter\Debug\Exceptions->shutdownHandler()
#1 {main}
CRITICAL - 2020-10-11 14:28:52 --> Maximum execution time of 180 seconds exceeded
#0 [internal function]: CodeIgniter\Debug\Exceptions->shutdownHandler()
#1 {main}
Description
Maximum execution time exceeds if the request is from an IPv6 address while processing Reverse Proxy IP.
I have set cloudflare IPs for Reverse Proxy IP list and I saw a few errors today on my site. Checking the access_logs with error timestamps reveals that these requests were from IPv6 addresses and were all failing with max execution time errors.
I was only able to replicate the issue by requesting my site with
http://ipv6-test.com
once since I don't have an IPv6 address.PHP error_log
CodeIgniter log
Apache Access log
App Config
CodeIgniter 4 version
CodeIgniter 4.0.4
Affected module(s)
\CodeIgniter\HTTP\Request->getIPAddress()
Expected behavior, and steps to reproduce if appropriate
Add cloudflare IPs to Reverse Proxy IP list and request the server from an IPv6 address.
Context
The text was updated successfully, but these errors were encountered: