iotile / iotile/coretools

Race condition between sending an RPC and BLED112 disconnection on virtual device

Open
#255 0 comments 0 reactions 0 assignees View on GitHub
type:bug
Dominant language
Python
Stars
14
Forks
7
PR merge metrics
No merged PRs in 30d

Description

See _call_rpc in `virtual_bled112.py`.

If an RPC comes and the user disconnects before the response is sent, the `_send_notification` calls will raise an exception and kill the process. This needs a guard like the stream functions have to check for 0x181 responses and eat them.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.