Giter VIP home page Giter VIP logo

Comments (8)

cloud-arrow avatar cloud-arrow commented on August 16, 2024

@matyhtf 大佬帮忙看一下,🙏

from swoole-src.

NathanFreeman avatar NathanFreeman commented on August 16, 2024

看起来像是两个协程用了同一个curl连接

from swoole-src.

cloud-arrow avatar cloud-arrow commented on August 16, 2024

看起来像是两个协程用了同一个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

@NathanFreeman

from swoole-src.

NathanFreeman avatar NathanFreeman commented on August 16, 2024

没错,是多个协程共用一个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.

cloud-arrow avatar cloud-arrow commented on August 16, 2024

没错,是多个协程共用一个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.

NathanFreeman avatar NathanFreeman commented on August 16, 2024

检查一下代码是哪里出问题或者找不到问题代码在哪就关闭协程

from swoole-src.

matyhtf avatar matyhtf commented on August 16, 2024

两个协程公用了同一个 curl 句柄导致

from swoole-src.

qiqizjl avatar qiqizjl commented on August 16, 2024

我们也同样出现了这个问题 怀疑是symfony/http-client这个库的问题?

from swoole-src.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.