chirpstack / chirpstack-gateway-bridge

ChirpStack Gateway Bridge abstracts Packet Forwarder protocols into Protobuf or JSON over MQTT.
https://www.chirpstack.io
MIT License
422 stars 270 forks source link

[bug] semtechudp/backend read mutex lock nest #118

Closed orientlu closed 5 years ago

orientlu commented 5 years ago

Is this a bug or a feature request?

is a bug, i test lorasever project ,found my gateway-bridge will block on handlePackage where try to get the read lock. and i think the block is cause by read lock nest 1.function handlePushData is called by handlePacket which will get the read lock, 2.fucntion handleStats is called by handlePushData and will get the read lock too here, if somewhere get the write lock betwen 1 and 2, will cause deadlock

What did you expect?

may you merge the code which i think it fixed

What happened?

What version are your using?

How can your issue be reproduced?

Could you share your log output?

orientlu commented 5 years ago

pr