[ 
https://issues.apache.org/jira/browse/MYNEWT-351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christopher Collins resolved MYNEWT-351.
----------------------------------------
    Resolution: Won't Fix

I don't think this is worth doing for the following reasons:

* Some GATT failures are only detected when a callback returns error.  In these 
cases, we can't free the procedure before the callback, because we don't know 
if we are done with it yet.  Getting this right will introduce code complexity.

* Most callbacks need to receive the procedure data.  Making a temporary copy 
of the various procedure structs will add code size and complexity.

> BLE Host - Delete completed GATT procedure before calling callback
> ------------------------------------------------------------------
>
>                 Key: MYNEWT-351
>                 URL: https://issues.apache.org/jira/browse/MYNEWT-351
>             Project: Mynewt
>          Issue Type: Bug
>          Components: Nimble
>            Reporter: Christopher Collins
>            Assignee: Christopher Collins
>             Fix For: v1_0_0_rel
>
>
> When a GATT procedure completes, its callback gets executed.  The procedure 
> doesn't get deleted until after the callback. This is problematic if the 
> application wants to initiate another procedure from within the callback and 
> the GATT proc pool is empty.  We should copy the data necessary for the 
> callback and delete the procedure, then call the callback.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to