current location:Home > Technical Articles > PHP Framework > Swoole

  • How to catch php errors with swoole
    How to catch php errors with swoole
    In PHP, fatal errors can be captured through register_shutdown_function+error_get_last 2 functions and the error information is sent to the client connection.
    Swoole 1864 2019-12-16 09:35:12
  • How to restart the swoole process after it is closed
    How to restart the swoole process after it is closed
    After the swoole process is closed, you can use the Server->reload method to restart it. Swoole provides a flexible termination/restart mechanism. The administrator only needs to send a specific signal to the server, and the server's Worker process can be safely terminated or restarted.
    Swoole 2903 2019-12-16 09:32:43
  • Does swoole worker have event polling?
    Does swoole worker have event polling?
    The swoole worker has event polling. The swoole_server thread mode is the multi-threaded Worker mode. The Reactor thread handles network event polling and reads data. There will be synchronization problems when accessing shared memory, and the lock mechanism provided by Swoole needs to be used to protect data.
    Swoole 2205 2019-12-16 09:28:08
  • Will the swoole task block?
    Will the swoole task block?
    The swoole task will block, and the number of task operations must be less than the onTask processing speed. If the delivery capacity exceeds the processing capacity, the task will fill the cache area, causing the worker process to block.
    Swoole 2892 2019-12-16 09:18:31
  • How to use PHP swoole
    How to use PHP swoole
    swoole perfectly supports the PHP language, is written in pure C language, and provides an asynchronous multi-threaded server in the PHP language. So Swoole built an asynchronous server to provide a series of tasks such as asynchronous response, push, and scheduled tasks. It is a common choice. ​
    Swoole 3426 2019-12-16 09:08:15
  • The difference between swoole and rpc in php
    The difference between swoole and rpc in php
    The difference between php's swoole and rpc: The RPC server provided by the Swoole framework supports features such as single connection concurrency and long connection maintenance under PHP-FPM. In the large-scale application of Wheel Internet, a service-oriented architecture of 4-layer architecture has been constructed.
    Swoole 2466 2019-12-14 14:17:01
  • swoole's onreceive is not triggered
    swoole's onreceive is not triggered
    This function is called back when swoole's onReceive receives data, which occurs in the worker process. If swoole's onreceive is not triggered, it may be that the data received by onReceive in a single time exceeds the default 64k.
    Swoole 2536 2019-12-14 14:13:01
  • How to mix nginx and swoole
    How to mix nginx and swoole
    Configure the server item of nginx. When a static file is requested, it is processed directly by Nginx. When the requested file does not exist, it is sent to the Swoole server for processing.
    Swoole 2622 2019-12-14 14:06:30
  • How to make php run permanently with swoole
    How to make php run permanently with swoole
    Soole can make PHP run permanently by starting the daemon process. When daemonize=>1 is set, the program will go to the background and run as a daemon process. This must be enabled for long-running server-side programs.
    Swoole 2297 2019-12-14 13:39:52
  • Is swoole open source?
    Is swoole open source?
    Swoole is open source and free software, and the licensing agreement is Apache2.0. Both corporate and individual developers can use Swoole's code for free, and modifications made on Swoole can be used in commercial products without open source (note: the copyright statement of the original author must be retained).
    Swoole 2320 2019-12-14 13:30:42
  • Swoole FAQ: Introduction to 'It is present in phpinfo but not in php -m'
    Swoole FAQ: Introduction to 'It is present in phpinfo but not in php -m'
    If the extended information of swoole is output, it means that your installation is successful!
    Swoole 2053 2019-12-14 11:09:00
  • What to do if swoole installation fails
    What to do if swoole installation fails
    The swoole installation failed because the PHP version did not correspond to the phpize and php-config used during compilation. An absolute path was required for compilation, that is, the absolute path was used to execute PHP.
    Swoole 3349 2019-12-14 11:09:17
  • How to get uid in swoole
    How to get uid in swoole
    In swoole, you can use Server->bind to obtain the uid. Server->bind will bind the connection to a user-defined UID. You can set the dispatch_mode=5 value for fixed hash distribution. It can be guaranteed that all connections of a certain UID will be assigned to the same Worker process.
    Swoole 4775 2019-12-13 16:56:51
  • How to keep swoole on
    How to keep swoole on
    swoole can be always enabled by starting the daemon process. Daemonization: When daemonize=>1 is set, the program will run in the background as a daemon process. This must be enabled for long-running server-side programs.
    Swoole 3206 2019-12-13 16:45:17
  • What language is swoole written in?
    What language is swoole written in?
    Swoole is a PHP asynchronous network communication engine for production environments. It is written in pure C language and provides asynchronous IO servers and clients of multiple communication protocols; Swoole2.0 also supports coroutines similar to Go language, which can Implement asynchronous programs using fully synchronous code.
    Swoole 1856 2019-12-13 11:34:34

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28