apache / dubbo-getty

a netty like asynchronous network I/O library based on tcp/udp/websocket; a bidirectional RPC framework based on JSON/Protobuf; a microservice framework based on zookeeper/etcd
Apache License 2.0
218 stars 69 forks source link

Fix: fix connection was assigned a nil will lead to panic #92

Closed Lvnszn closed 2 years ago

Lvnszn commented 2 years ago

What this PR does: 解决session里面的connection会被赋值nil的时候引用connection中的方法的时候会出现panic的问题。通过session的lock机制解决竞态问题。 Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?: