16 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
74
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 ...
1
vote
1
answer
597
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: /...
user avatar
user25372725
0
votes
1
answer
37
views
Pass in additional parameters to the UDP $server->on() callback function
I have an existing PHP process that receives data via UDP which then pushes that data into Beanstalk (beanstalkd not the AWS Elastic Beanstalk). Another process then pulls this data from beanstalk (...
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 ...
0
votes
1
answer
585
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
394
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
2k
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
876
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
662
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
2
answers
1k
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
2
answers
879
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
287
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 ...
28
votes
5
answers
21k
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
613
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
401
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.