Giter Club home page Giter Club logo

Comments (3)

volgariver6 avatar volgariver6 commented on August 24, 2024

我也遇到这个卡住不退出的情况,跟了一下代码,根本原因是死锁问题导致的。
在调用Server.Stop() 的时候,执行了:
s.ConnMgr.ClearConn() <------(1)
在ClearConn() 中,执行了conn.Stop()。
在conn.Stop()中又调用了ConMgr的Remove() <------(2)

在(1)和(2)中都要拿到锁connMgr.connLock.Lock(),所以在调用Remove()的时候就卡住了,这应该是一个bug。

from zinx.

ycg000344 avatar ycg000344 commented on August 24, 2024

@lauber00 感谢,刚才检查了代码,确实是这种情况,删除了 ClearConn里面的锁来解决了。

from zinx.

AleDaDa avatar AleDaDa commented on August 24, 2024

这问题似乎没有提交给维护团队, 那大家都直接魔改源码么

from zinx.

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.