Questions tagged [swoole]

Swoole is an open source async framework for PHP.

Swoole is an event-driven asynchronous and concurrent networking communication framework with high performance written only in C for PHP.

The network layer in Swoole is event-based and takes full advantage of the underlying epoll/kqueue implementation, making it really easy to serve thousands of connections.

More information can be found on GitHub and the Swool website.

92 questions
9
votes
1 answer

Swoole with RabbitMQ

I'm trying to send some data from php application to the user's browser using websockets. Therefore I've decided to use Swoole in combination with RabbitMQ. It's the first time I'm working with websockets and after reading some posts about…
rvaliev
  • 1,051
  • 2
  • 12
  • 31
7
votes
4 answers

Is it possible to install swoole in windows machine?

I have installed Laravel 5 with php7 and which is working perfectly on my Windows machine. Recently I came to know that SWOOLE is a promising tool for PHP developers! Unfortunately, I couldn't find any SWOOLE installers for windows. Isn't it…
Sumithran
  • 6,217
  • 4
  • 40
  • 54
4
votes
4 answers

How to install Swoole in ubuntu

Simply my Question is How to Install Swoole in Ubuntu 14.04 LTS I have tried sudo pecl install swoole am getting handfull of errors, already posted here Is there any alternate way to install the same...
Sumithran
  • 6,217
  • 4
  • 40
  • 54
4
votes
0 answers

Using Swoole locks in PHP

I'm working on a new project which should be implemented by Swoole extension. Here is the docs for swoole locks: https://www.swoole.co.uk/docs/modules/swoole-lock Here is supported lock types: SWOOLE_FILELOCK: file lock SWOOLE_RWLOCK: read write…
Davis.S
  • 41
  • 3
3
votes
0 answers

Swoole sending check_worker_exit_status() log

I have a problem while using laravel with swoole on php 8.1.Some requests finished with HTTP 408 sometimes. Then when I looked at the log file, I saw the following error. [2022-07-29 08:59:52 $28.0] WARNING Server::check_worker_exit_status():…
Omer SAVAS
  • 41
  • 3
3
votes
1 answer

Problem running Blackfire together with PHP Swoole in Docker

Has anyone managed to use Blackfire together with Swoole? I've been trying to set it up for a few days, but without success. I'm calling the following script in the PHP-CLI Swoole Dockerfile: #!/usr/bin/env bash # @see…
3
votes
2 answers

Is wrk benchmark tool reliable for testing fastest php framework

So I tried to test php framework on my localhost (6 year old i7 pc) using: wrk -t12 -c100 -d30s http://127.0.0.1 Laravel without DB I've got: 698 request per second Cakephp: 1,400 rps Swoole : 197,000 rps Swoole with middleware (fastroute, etc)…
John Laniba
  • 435
  • 3
  • 12
2
votes
0 answers

Debugging Laravel Octane (Swoole serving) by Yasd -

I try to debugging swoole Laravel app with Yasd. I'm getting errors when starting this repo https://github.com/DenisPetrov100/Laravel-CRUD-SPA-SAMPLE-3 laravel.test_1 | 2022-06-24 10:19:44,403 INFO Set uid to user 0 succeeded laravel.test_1 |…
Den
  • 55
  • 5
2
votes
0 answers

Can use `octane` (swoole) cache driver as default cache driver in laravel

Firstly, my English is bad. Sorry about that. Why I ask this question since cache with octane (swoole) only available on runtime. Snippet on Laravel docs the cached data will be flushed when the server is restarted => Some parts of laravel cache…
Le Dinh
  • 79
  • 9
2
votes
0 answers

octane:reload on centos 8 doesn't reflect changes

Octane Version: 1.0.8 Laravel Version: 8.49.2 PHP Version: 8.0.8 Server & Version: Swoole 4 Database Driver & Version: PostgreSQL 12 On local (Ubuntu 20.04) the reload works well, but on the server (Centos 8) the reload did not reflect the changes.…
2
votes
3 answers

How to do a classic php exit() on swoole?

For example this code
pablorsk
  • 3,861
  • 1
  • 32
  • 37
2
votes
2 answers

Swoole php module : undefined symbol: spl_ce_Countable issue

I'm trying to install swoole on my machine first : pecl install swoole Then i need a php module cd swoole phpize ./configure make sudo make install The script create a swoole.so in my folder, so i…
David Auvray
  • 288
  • 1
  • 3
  • 20
1
vote
0 answers
1
vote
0 answers

Unable to load dynamic library 'swoole'

I am trying to run laravel octane based image in php 8.1 image. but I am constantly getting an error of extension swoole.so not found swoole.so is already there in desired location and php artisan octane:start is giving some errors like function…
1
vote
0 answers

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 What can I uninstall and how on Ubuntu? I don't use swoole and…
milica98
  • 199
  • 8
1
2 3 4 5 6 7