workerman
workerman copied to clipboard
An asynchronous event driven PHP socket framework. Supports HTTP, Websocket, SSL and other custom protocols.
$http_worker = new Worker('http://0.0.0.0:2883'); $http_worker->onMessage = function (\Workerman\Connection\TcpConnection $connection, \Workerman\Protocols\Http\Request $request) { $get = $request->get(); $post = $request->post(); $header = $request->header(); $data = [ 'header' => $header, 'get' => $get,...
我的机器是windows的,用的是`select`事件监控器,我跟进了一下是`stream_select`函数第一次特别慢。 当我将`stream_select`的超时改为1s后,http响应时间正常。
Hi All! I have problem with deflate support on websockets. if short messages from client to server - all working good. But if client send long message to server this...
So we can find problems with time. PHP 8.4 Timetable https://wiki.php.net/todo/php84 WIP
Hello. Please tell me, I use Workerman in my web application to send server notifications to clients. I don't understand how to solve this problem: The user came from a...
Hi guys, Is possible to build workerman as a PHP extension such as use zephir I just checkout this https://docs.zephir-lang.com/latest/tutorial/#adding-our-first-class I'd like to build my app and workerman into a...
服务器上一共有80个CPU,为什么在配置worker数量为80时测试发并发反而没有配置为8个worker QPS高呢(已启用event扩展)? 配置80个worker时测试结果如下: ``` root@sbox01:~# wrk -t1000 -c1000 -d30s http://192.168.1.2:80/ --latency Running 30s test @ http://192.168.1.2:80/ 1000 threads and 1000 connections Thread Stats Avg Stdev Max +/- Stdev Latency 4.54ms...
#### 问题描述 使用workman框架,写一个简单的soap服务,访问wsdl无法正常获取服务定义的xml内容。经调试后发现workman收到请求后没有正确设置 `sapi_globals_struct.request_info` #### 程序代码或配置 workman代码 ``` enabled Soap Server => enabled Directive => Local Value => Master Value soap.wsdl_cache_enabled => On => On soap.wsdl_cache_dir => /tmp => /tmp...
This error showed below writes into workerman.log 23 times per second, and log-file grows for a 353GB. I cannot find the reason of that exception. Please help. ``` 2023-11-06 18:52:59...
Until recently, we had implemented our chess functionality on two different servers: The [WebSocket server](https://github.com/chesslablab/chess-server) and the [web server](https://github.com/chesslablab/chess-api). The former was intended to run real-time tasks while the latter...