From 8caaf659cb1b1a9fc46b7097d98b7dc2b247cc0c Mon Sep 17 00:00:00 2001 From: Christian Date: Fri, 27 Sep 2024 12:44:37 +0200 Subject: [PATCH] Update setting-the-timeout.md At an appropriate place in the documentation, point out a potential problem with CLI server workers when Browsershot is used with Docker. --- docs/miscellaneous-options/setting-the-timeout.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/miscellaneous-options/setting-the-timeout.md b/docs/miscellaneous-options/setting-the-timeout.md index b783df33..7c657096 100644 --- a/docs/miscellaneous-options/setting-the-timeout.md +++ b/docs/miscellaneous-options/setting-the-timeout.md @@ -10,3 +10,5 @@ Browsershot::url('https://example.com') ->timeout(120) ->save($pathToImage); ``` + +If you use Browsershot in conjunction with Docker and encounter unexpected timeout errors, it may be due to the PHP_CLI_SERVER_WORKERS environment variable allowing only one worker. It might be necessary to increase the value of this variable.