Skip to main content

Questions tagged [openswoole]

The tag has no usage guidance.

openswoole
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: ...
Lay András's user avatar
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 ...
Robbie Moore's user avatar
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 ...
amirreza miratollahi's user avatar
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, ...
Benyamin Limanto's user avatar
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 ...
milica98's user avatar
  • 324
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 ...
milica98's user avatar
  • 324
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\...
Hokascha's user avatar
  • 2,009
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 ...
Mireko's user avatar
  • 41
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-...
R. Pêgo's user avatar
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, ...
DeveloperX's user avatar
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 ...
MihaOo's user avatar
  • 9
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 ...
Rajan Sharma's user avatar
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 ...
user3818576's user avatar
  • 3,241
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 ...
suyuan xu's user avatar
  • 130
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.
Al Emran's user avatar

15 30 50 per page