Questions tagged [openswoole]
The openswoole tag has no usage guidance.
openswoole
16
questions
0
votes
0
answers
39
views
Build process output sending with swoole
I have a build page where the browser connects to the websocket server implemented in swoole using the websocket protocol. The way it currently works is that swoole runs a cli command, like this:
...
0
votes
0
answers
171
views
Laravel/Swoole - Resolving a class in a task worker is very slow
I'm utilising Swoole concurrency in a Laravel project.
In the task worker I need to resolve a class (because the function passed to the task worker needs to be serialized, I can't pass the class to ...
0
votes
0
answers
351
views
Speed up Laravel with Open Swoole
I have install laravel-open-swool package to serv my laravel project in swool of nginx or apache .
composer require swooletw/laravel-swoole
Now when i want to start http server the error happen
Call ...
0
votes
1
answer
405
views
how to fix swoole_version not found with docker.io/openswoole/swoole:php7.4-alpine, even with openswoole.so loaded
I'm trying to text openswoole http server using docker image docker.io/openswoole/swoole:php7.4-alpine , but, I can't even find the function swoole_version(), I already check the php --ri openswoole, ...
1
vote
0
answers
321
views
PHP Warning: Cannot load module "openswoole" because conflicting module "swoole" is already loaded in Unknown on line 0
I have a warning when I use any php command in terminal:
PHP Warning: Cannot load module "openswoole" because conflicting module "swoole" is already loaded in Unknown on line 0
...
1
vote
4
answers
1k
views
How to refresh changes in swoole PHP
I created one folder with two files, one is index.php and one is Dockerfile and in terminal I run php index.php and it started on http://127.0.0.1:9501/, but when I change hello world in something ...
1
vote
1
answer
631
views
How to access session data in OpenSwoole WebSocket server?
I have a small websocket server implemented in OpenSwoole. Is there a way to access the users session data? I tried this:
<?php
use Swoole\WebSocket\Server;
use Swoole\Http\Request;
use Swoole\...
0
votes
1
answer
499
views
How to return response from a go function coroutine
I'm using the Laravel Swoole Coroutine go function to do a HTTP request in order to achieve better performance. When I get the response from the external service, a new entry is created in the ...
0
votes
1
answer
904
views
Sending large files Swoole with Laravel/Octane
I'm having issues with uploading files now that I'm using octane.
At first I couldn't send files larger than 2M, reading this post: https://ghostzero.dev/blog/set-custom-package-max-length-for-swoole-...
0
votes
0
answers
1k
views
How to setup laravel-docker+swoole without sail
I am trying to migrate my website to docker, but the problem arrives when I need to add it octane+swoole, I cant find a good tutorial, most of them uses laravel sail, but sail is not for production, ...
0
votes
2
answers
590
views
How can I share PHP objects between Swoole workers/processes
I am using Swoole to develop my own WebSocket server with custom logic. I've made simple wrapper for Swoole\WebSocket\Server and implemented some classes that work as event handlers. Here is wrapper ...
2
votes
0
answers
226
views
Remove or Replace Server Header in Swoole WebSocket Response
I have created a Swoole WebSocket server using the example given on the official OpenSwoole website:
https://openswoole.com/docs/modules/swoole-websocket-server#quick-start-example
The response header ...
20
votes
5
answers
15k
views
pcre2.h: No such file or directory
I try to install openswoole on my mac machine. I have this issue when installing it.
/usr/local/Cellar/[email protected]/7.4.29/include/php/ext/pcre/php_pcre.h:25:10: fatal error: pcre2.h: No such file or ...
0
votes
1
answer
505
views
does swoole table destroy itself when swoole websocket server shuts down
i am setting up a Swoole web socket server for my chat application on CentOS 7 host machine. and will use Swoole table for storing users list.
But i am not sure what is the lifespan like for Swoole ...
1
vote
0
answers
350
views
How to change database connection dynamically in laravel-octane?
I need to change database dynamically on the fly in laravel-octane or laravel-swoole package.
I am working on a custom multi tenant system. Application is working fine without swoole/octane.