diff options
Diffstat (limited to 'classes/Handler/PaginationHandler.php')
| -rw-r--r-- | classes/Handler/PaginationHandler.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/classes/Handler/PaginationHandler.php b/classes/Handler/PaginationHandler.php index 3265440..03388c9 100644 --- a/classes/Handler/PaginationHandler.php +++ b/classes/Handler/PaginationHandler.php @@ -10,8 +10,12 @@ use Response; class PaginationHandler implements RequestHandlerInterface, AuthRequired { - /** Upper bound for stored location payloads (epub.js location arrays can be large). */ - private const MAX_PAYLOAD_SIZE = 2 * 1024 * 1024; + /** + * Upper bound for stored location payloads. Observed real-world max in + * production is ~3 MB for large books; 16 MiB keeps generous headroom + * while still bounding unbounded storage growth. + */ + private const MAX_PAYLOAD_SIZE = 16 * 1024 * 1024; private function handleGet(int $bookid): Response { if ($bookid) { |
