Skip to content

Commit

Permalink
Update setting-the-timeout.md
Browse files Browse the repository at this point in the history
At an appropriate place in the documentation, point out a potential problem with CLI server workers when Browsershot is used with Docker.
  • Loading branch information
koernchen02 authored Sep 27, 2024
1 parent 172b713 commit 8caaf65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/miscellaneous-options/setting-the-timeout.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 8caaf65

Please sign in to comment.