Reduced maximum Server Timing headers size for nginx

See #52
This commit is contained in:
Andrey Savchenko committed 2021-09-28 11:05:51 +03:00
1 parent de563bb5d4
commit 595b696a03
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## Unreleased
### Changed
- reduced maximum Server Timing headers size to 2K (half of possible nginx defaults)
## 3.3.4 - 2020-11-16
### Fixed
+1 -1
View File
@@ -63,7 +63,7 @@ class Server_Timing_Manager {
$header .= sprintf( '%s;dur=%.2f;desc="%s", ', $record->get_category(), $duration, $record->get_name() );
if ( strlen( $header ) > 4000 ) { // 8+KB headers break proxies, so we cut off at 1/2 that limit.
if ( strlen( $header ) > 2000 ) { // 8+KB headers break proxies, 4+KB nginx, so we cut off at 1/2 that limit.
break;
}
}