Skip to content

Commit 532020b

Browse files
authored
Fix issue symfony#118
When running the server on Docker, `@file_get_contents($url, false, $context)` in `WebServerReadinessProbeTrait.php` always returns false because of the timeout in `$context` which is too low. Because of that, the method `waitUntilReady` is stuck in an endless while loop. Increasing the timeout from 1 to 5 seems to solve the problem.
1 parent 770cfee commit 532020b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ProcessManager/WebServerReadinessProbeTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function waitUntilReady(Process $process, string $url, bool $ignoreErrors
4242
'ignore_errors' => $ignoreErrors,
4343
'protocol_version' => '1.1',
4444
'header' => ['Connection: close'],
45-
'timeout' => 1,
45+
'timeout' => 5,
4646
]]);
4747

4848
while (Process::STATUS_STARTED !== ($status = $process->getStatus()) || false === @file_get_contents($url, false, $context)) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy