Comments (8)
@matyhtf 大佬帮忙看一下,🙏
from swoole-src.
看起来像是两个协程用了同一个curl连接
from swoole-src.
看起来像是两个协程用了同一个curl连接
不是吧,共用同一个连接,我记得是报这种错误的
Fatal error: Uncaught Swoole\Error: Socket#6 has already been bound to another coroutine#2, reading or writing of the same socket in coroutine#3 at the same time is not allowed
from swoole-src.
没错,是多个协程共用一个curl连接
Coroutine *check_bound_co() {
if (co) {
swoole_fatal_error(SW_ERROR_CO_HAS_BEEN_BOUND, "cURL is executing, cannot be operated");
return nullptr;
}
return Coroutine::get_current_safe();
}
from swoole-src.
没错,是多个协程共用一个curl连接
Coroutine *check_bound_co() { if (co) { swoole_fatal_error(SW_ERROR_CO_HAS_BEEN_BOUND, "cURL is executing, cannot be operated"); return nullptr; } return Coroutine::get_current_safe(); }
你好,那这个要怎么解决? @NathanFreeman
from swoole-src.
检查一下代码是哪里出问题或者找不到问题代码在哪就关闭协程
from swoole-src.
两个协程公用了同一个 curl 句柄导致
from swoole-src.
我们也同样出现了这个问题 怀疑是symfony/http-client这个库的问题?
from swoole-src.
Related Issues (20)
- 面向aop开发 HOT 4
- server.pid file is not created HOT 2
- free(): invalid pointer when curl support is on HOT 10
- Lines to stderr gets tangled
- WebSocket: After calling $webSockerServer->push() from within onMessage event, the WebSocket connection closes by calling onClose event. HOT 8
- cancel coroutine ! HOT 5
- WebSocket: $this->socket->recv(); on client-side ends up with warning and websocket connection auto disconnects. HOT 1
- Can not install Swoole v5.1.3 due to unavailability of package "libbrotlienc" on Ubuntu 22.04. The package is also not locatable in Ubuntu Repos. HOT 4
- While installing Swoole, i get warning "configure: WARNING: unrecognized options: --enable-http2, --enable-swoole-json, --with-postgres" HOT 2
- ProcessFactory::end() (ERRNO 1005): session#6 does not exists,达梦数据库 HOT 8
- 手动新增mailparse扩展不成功 HOT 3
- When use swoole in php 8.2,Swoole\Http2\Request may throw ErrorException:Creation of dynamic property $serverLastStreamId
- Calling macro `swoole_fatal_error` will immediately terminate the process without executing `php_request_shutdown` in Swoole 5.1.x HOT 3
- php-swoole 6.0.0 is leading to issues with PDO connections to postgres HOT 11
- Cancel Coroutine ! HOT 1
- WARNING Server::check_worker_exit_status(): worker(pid=8162, id=13) abnormal exit, status=0, signal=11 HOT 2
- Manage connections at 1 second intervals from within the websocket task, close connections etc. HOT 2
- PHP Fatal error: Cannot redeclare Swoole\Coroutine\run() (previously declared in @swoole/library/core/Coroutine/functions.php:16) in [my_project_folder]/vendor/swoole/library/src/core/Coroutine/functions.php on line 24 HOT 3
- https://swoole.com/download 页面的文件均无法下载 HOT 1
- problem with variable value 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.