Parent: 932bc368ef5c774fda1e028029a5061e0d5eadfb
Author: Ido Yariv <ido@wizery.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2012-05-30 10:39:52
Tree: 007c119d9a9cca2b2f4db75964ac0d04f29ff48f
gattrib: Fix a request/response command deadlock New requests and responses are never sent if a request was sent and the response for it hasn't been received yet. As a result, if both end points send requests at the same time, a deadlock could occur. This could happen, for instance, if the client sends a read request and the server sends an indication before responding to the read request. Fix this by introducing an additional queue for responses. Responses may be sent while there's still a pending request/indication.
Diffstat
| M | attrib/gattrib.c | | | 111 | ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - |
1 files changed, 87 insertions(+), 24 deletions(-)