You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2019/12/31 09:51:12 UTC

[GitHub] [mynewt-nimble] michal-narajowski commented on issue #664: L2CAP COC: We should get an error when trying to create more servers than configured

michal-narajowski commented on issue #664: L2CAP COC: We should get an error when trying to create more servers than configured
URL: https://github.com/apache/mynewt-nimble/issues/664#issuecomment-569899579
 
 
   This issue appears when we create BLE_L2CAP_COC_MAX_NUM channels as a client and then we create an L2CAP server. When a peer tries to connect to it we will return an error because we will not be able to allocate a new channel (limit of channels reached). We can create a server successfully because this API uses `ble_l2cap_coc_srv_pool` mempool. Then when a peer connects to this server we try to allocate a channel from `ble_l2cap_chan_pool` mempool and fail. 
   
   I'm not saying this is a bug per se, more of a usability issue.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services