zeliard / easygameserver Goto Github PK
View Code? Open in Web Editor NEWGame server framework for cocos2d-x
License: MIT License
Game server framework for cocos2d-x
License: MIT License
It seem thread has been detached.
Sock 이 132인 ClientSession이 disconnect 되었습니다,
하지만 refCount가 아직 0이 아니여서 ClientManager의 mClientList에서 바로 지워지지 않습니다 ( 해당 부분 : ClientManager :: CollectGarbageSessions)
disconnect된 즉시 클라측에서 접속을 해보았습니다.
그때 할당된 소켓의 번호가 132이었습니다.
그래서 아직 mClientList[132]가 지워지지 않는데, 또 132번의 소켓넘버를 가진 clientSession이 mClientList에 inesrt되었습니다.
현재 mClientList는 map(Dictionary), non multi value라서 이미 132의 값이 있어서 insert가 무시된 것 같습니다.
그 직후 RefCount가 0이 된 132의 session이 CollectGarbageSessions에 의해 제거되어서 mClintList.count가 0이 되었습니다.
요약 : 매우 짧은 시간에 재접속 했을 경우 같은 소켓번호로 들어온 ClintSession이 Manage되지 못하고 댕글링 포인터가 됨
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.