Comments (4)
哪个版本?
from swoole-src.
swoole-1.6.11-stable
from swoole-src.
Ok. 刚才已经找到问题的原因,已修复。
from swoole-src.
1.6.11版本的用户,请手工修改代码,将src/factory/FactoryProcess.c修改的swFactoryProcess_send2worker函数中。
//使用fd取摸来散列
else if (serv->dispatch_mode == SW_DISPATCH_FDMOD)
{
if(data->info.type == SW_EVENT_TCP)
{
pti = data->info.fd % object->worker_num;
}
//udp use remote port
else
{
pti = ((uint16_t) data->info.from_id) % object->worker_num;
}
}
修改为
//使用fd取摸来散列
else if (serv->dispatch_mode == SW_DISPATCH_FDMOD)
{
//udp use remote port
if (data->info.type == SW_EVENT_UDP)
{
pti = ((uint16_t) data->info.from_id) % object->worker_num;
}
else
{
pti = data->info.fd % object->worker_num;
}
}
然后重新编译,安装。
from swoole-src.
Related Issues (20)
- Swoole CURL Flag causes SEGFAULT on PHP8.3 HOT 2
- Compile and install Swoole 5.1.1, run the make test command and output a large number of errors HOT 1
- abnormal exit HOT 3
- curl协程化无法通过curl_getinfo获取tcp连接时长等数据 HOT 4
- 编译报错 HOT 2
- 开启native curl后性能远不及未开启native curl HOT 2
- MySQL server fails connection at ./init of test HOT 1
- typo report: UNKOWN
- Urgent Request for 'curl' Bug Fix Release HOT 2
- swoole 5.1.1 线上运行一段时间后,容易出现假死现象 HOT 2
- PECL release of swoole 5.1.2 HOT 8
- syntax error near unexpected token `SQLITE,' HOT 1
- CURLOPT_SHARE option is not supported in Swoole 5.0.3 HOT 1
- Segmentation fault when calling blocking function inside coroutine HOT 2
- make test error report HOT 1
- 实际上5.1.1的一键协程化,很多是不能用的,swoole会报错,理想很丰满,现实很骨感,还是得用之前得协程客户端 HOT 1
- Swoole\Coroutine\FastCGI\Client设置了withKeepConn为true仍然无法复用同一个连接 HOT 6
- Server::check_worker_exit_status(): worker(pid=3169, id=1) abnormal exit, status=0, signal=11 HOT 8
- tcp socket 服务,想限制包大小,package_max_length设置的1024 * 1024,传几个字节就报错,并且连接断开。 HOT 1
- 请求兼容micro运行环境,出现`Swoole\Http\Server can only be used in CLI mode`异常 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swoole-src.