Comments (3)
I'm not sure what you wish to achieve here? You're preventing all stray requests and then invoking concurrently
. That won't ever work since concurrently
dispatches requests. These two cannot be combined unless you instruct the Http::fake
to mock the /octane/resolve-tasks
request.
from octane.
I understand that concurrently
dispatches requests. But it dispatches requests within the same app. It doesn't make any third-party requests.
Doesn't it seem logical that this example should work?
\Illuminate\Support\Facades\Http::preventStrayRequests();
\Laravel\Octane\Facades\Octane::concurrently([fn (): int => 1]);
And this one shouldn't?
\Illuminate\Support\Facades\Http::preventStrayRequests();
\Laravel\Octane\Facades\Octane::concurrently([fn () => \Illuminate\Support\Facades\Http::get('example.com'))]);
For me, it seams reasonable to fake only example.com
response. But additional layer of faking /octane/resolve-tasks
seems overwhelming.
from octane.
No because Swoole's HTTP task dispatcher doesn't operates on the same app url. It dispatches either from a custom host or 127.0.0.1
on its specific port.
from octane.
Related Issues (20)
- Error PHP 8.3.3 10.46.0 Undefined constant "FTP_BINARY" HOT 2
- gmp and imagick and other extensions not loaded HOT 1
- Using Octane cause an issue with repeater fields from Laravel Nova HOT 1
- Error Too few arguments to function Illuminate\Cache\CacheManager::repository() HOT 2
- Octane does not call close() on Monolog Handler HOT 2
- Octane doesn't drop connections after docker container stopped HOT 4
- Bug: Target [Illuminate\Contracts\Routing\ResponseFactory] is not instantiable while building [Illuminate\Routing\ViewController]. with Breeze / Livewire HOT 16
- Fatal error with Swoole on a PUT request with application/x-www-form-urlencoded content type HOT 1
- Undefined array key "assets" HOT 4
- Invalid signature error with temporary signed routes HOT 1
- Loses communication with worker when using `dump()` HOT 4
- Swoole in HTTP/2 mode is incompatible with chunking large responses in `SwooleClient` HOT 1
- RoadRunner can't communicate with the worker HOT 20
- Octane fwrite no space on disk disable logging HOT 2
- No documentation for custom HTTP headers? HOT 1
- Octane + FrankenPHP + Sail, stuck in "Application change detected. Restarting workers" HOT 11
- Thread support from Swoole HOT 1
- Maximum execution time exceeded HOT 1
- Memory Leak in ViewServiceProvider HOT 6
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 octane.