94 questions
1 vote
0 answers
41 views
Why does each call to this socket server give a unique list of peers?
I'm trying to create a kind of signalling server. What I'm attempting to do is allow socket connections and respond to 'helo' with a list of already connected peers: <?php use Swoole\WebSocket\...
0 votes
0 answers
70 views
Laravel Octane - OpenSwoole taskWaitMulti error in concurrently()
I'm using Laravel Octane with OpenSwoole, and I'm trying to run nested Octane::concurrently() calls. However, I keep getting this error: OpenSwoole\Server::taskWaitMulti(): taskWaitMulti method can ...
0 votes
0 answers
191 views
Nginx Proxy is much slower than Raw Laravel Octane Swoole, is that supposed to be the case?
I'm wondering, is this how it should be or is it too slow? Why is the proxy so much slower? Or everything is fine and I should calm down. http://localhost/up - Nginx Proxy for Swoole http://localhost:...
1 vote
1 answer
565 views
Unable to install openswoole extension in php 8.3.6
I am trying to built and extension of openswoole from more than 13 hours but getting the same error again and again. PHP Warning: PHP Startup: Unable to load dynamic library 'openswoole.so' (tried: /...
1 vote
0 answers
135 views
SWOOLE usage with PHP as backend
I use PHP/Nginx as backend for my App. I was afraid that when many users are calling functions into PHP, it will slow down as PHP does not support Async function calls. I check the below MacOS ...
0 votes
0 answers
172 views
Running Laravel Octane/Swoole with IP host
I am currently running Laravel project with Octane and Swoole. It works well on localhost, but whenever I try to run Laravel Octane with host I always got an error like that: Running Laravel Octane on ...
1 vote
2 answers
1k views
How to increase max file upload size for Laravel Octane?
I can't upload file larger than 2MB while running Laravel 11 on Octane. Without Octane it works so it does not seem to be problem with Nginx or PHP. I tried Frankenphp and Swoole and both failed to ...
1 vote
0 answers
175 views
Building a PHP Docker image with swool
I'm trying to build a docker image from php:8.1.2-cli-alpine3.15 with swoole this is my Dockerfile FROM php:8.1.2-cli-alpine3.15 as build RUN mv "$PHP_INI_DIR/php.ini-production" "$...
0 votes
2 answers
704 views
Laravel Octane with Swoole HTTPS configuration apache vhost proxy error
I'm trying to setup SSL for my Laravel 11 website in which is running through Laravel Octane. I'm using swoole, have generated a let's encrypt ssl certificate and set swoole.ssl to true in my octane ...
2 votes
1 answer
334 views
How to install swoole on ddev?
I want to try swoole (Asynchronous, coroutine-based concurrency library for PHP) in one of my project. I am using DDEV (Docker-based PHP development environments) as my development platform on WSL2 (...
0 votes
1 answer
885 views
When deploying a Laravel Octane app with Swoole on Kubernetes (or AWS ECS), is a separate Nginx container required alongside the Octane app?
In the context of Kubernetes (or AWS ECS), when deploying a Laravel Octane application using Swoole (or RoadRunner), is it essential to include a separate Nginx container (or any other web server) ...
0 votes
1 answer
211 views
Can't download the PDF file in the due to cwd issue in Laravel Octane server with Swoole
I am using Laravel Octane and laravel-dompdf to generate the PDF. This was working fine when I was using the PHP-FPM and when I replaced PHP-FPM with Laravel Octane with Swoole, it says The provided ...
1 vote
1 answer
912 views
Significant Performance Loss with Swoole, Laravel 9, and Docker on Rocky Linux 9 Using Custom Networks
I've been running a Laravel 9 application with Swoole for my microservices. Everything works great until I containerize the application with Docker on Rocky Linux 9. I've noticed a drastic performance ...
0 votes
1 answer
371 views
Parallel function call in php
Is there a way to execute internal functions in parallel in PHP? For example, I have four functions: function a(){ return 1; } function b(){ return 2; } function c(){ return 3; } ...
0 votes
1 answer
168 views
Swoole context empty right after assignment, why?
I'm trying to use Swoole context and finally have simplifyed it down to the following code $server->on("Start", function(Server $server) { echo "OpenSwoole WebSocket Server is ...