Comments (6)
I'm able to reproduce on a project I'm working on. Disabling xdebug seems to solve it. I'll step through with gdb later and see what causes itโlike yours, it seems to be an issue with ending the request.
from frankenphp.
If you just exit
at a random place in the script, does it still not work?
from frankenphp.
When I put exit
into the public/index.php
from the start worker is restarting continuously.
I let the first worker start and then put exit
at the start of index.php.
Then I make the first request, this request works because it is already in memory.
Then second request goes into infinite loading, no new logs in container logs, seems like index.php is not run at all.
Weirdly setting xdebug.start_with_request=yes
fixes the issue.
from frankenphp.
Interesting. If you turn on xdebug logs, does it give any useful information? I wonder if this might be an xdebug bug?
from frankenphp.
For the first request I see following logs
[281472447540704] Log opened at 2024-08-15 07:40:47.634757
[281472447540704] [Config] INFO: Control socket set up succesfully: '@xdebug-ctrl.281472447540704'
[281472447540704] [Config] INFO: Trigger value for 'XDEBUG_TRIGGER' not found, falling back to 'XDEBUG_SESSION'
[281472447540704] [Config] INFO: Trigger value for 'XDEBUG_SESSION' not found, so not activating
But no zdebug logs for the second request
from frankenphp.
I tried now without a worker mode, it is working properly when worker mode is disabled.
from frankenphp.
Related Issues (20)
- @withinboredom use frankenphp builder images ? HOT 4
- Support curl-impersonate HOT 6
- Slow performance with Docker instalation on Windows. HOT 4
- Standalone binaries with Caddy cache-handler HOT 2
- Does frankenphp will cache the code? HOT 5
- Worker mode - objects are not resetted after finish one request HOT 1
- Non 200 responses on 1.2.3 HOT 10
- Question: How do you handle Runner errors? HOT 9
- Laravel HMR not working HOT 8
- should stdin be the request body?
- Segmentation fault /usr/local/bin/frankenphp php-cli ${args[@]} HOT 1
- Inconsistency in environment variables HOT 5
- Strange issues with file-descriptors HOT 2
- Can't run Caddy with HTTP cache HOT 10
- thrown in /app/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php HOT 2
- "No Active Transaction" Error After Reconnecting Database in Worker Mode HOT 1
- Question: how to build a standalone frankenphp binary with Caddy cache-handler HOT 3
- curl.cainfo setting from php.ini is being ignored and thus certs aren't available to cURL HOT 20
- Allow a way to define scripts to be run regularly or as a service HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frankenphp.