{"action":"created","issue":{"url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/issues/3446","repository_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr","labels_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/issues/3446/labels{/name}","comments_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/issues/3446/comments","events_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/issues/3446/events","html_url":"https://github.com/zephyrproject-rtos/zephyr/issues/3446","id":260024811,"number":3446,"title":"Bluetooth app can not get any callback when connect timeout","user":{"login":"zephyrbot","id":26360365,"avatar_url":"https://avatars1.githubusercontent.com/u/26360365?v=4","gravatar_id":"","url":"https://api.github.com/users/zephyrbot","html_url":"https://github.com/zephyrbot","followers_url":"https://api.github.com/users/zephyrbot/followers","following_url":"https://api.github.com/users/zephyrbot/following{/other_user}","gists_url":"https://api.github.com/users/zephyrbot/gists{/gist_id}","starred_url":"https://api.github.com/users/zephyrbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zephyrbot/subscriptions","organizations_url":"https://api.github.com/users/zephyrbot/orgs","repos_url":"https://api.github.com/users/zephyrbot/repos","events_url":"https://api.github.com/users/zephyrbot/events{/privacy}","received_events_url":"https://api.github.com/users/zephyrbot/received_events","type":"User","site_admin":false},"labels":[{"id":700751342,"url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/labels/area:%20Bluetooth","name":"area: Bluetooth","color":"ededed","default":false},{"id":383053976,"url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/labels/bug","name":"bug","color":"e99695","default":true},{"id":636351494,"url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/labels/priority:%20medium","name":"priority: medium","color":"c2e0c6","default":false}],"state":"closed","locked":false,"assignee":{"login":"jhedberg","id":1032570,"avatar_url":"https://avatars0.githubusercontent.com/u/1032570?v=4","gravatar_id":"","url":"https://api.github.com/users/jhedberg","html_url":"https://github.com/jhedberg","followers_url":"https://api.github.com/users/jhedberg/followers","following_url":"https://api.github.com/users/jhedberg/following{/other_user}","gists_url":"https://api.github.com/users/jhedberg/gists{/gist_id}","starred_url":"https://api.github.com/users/jhedberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhedberg/subscriptions","organizations_url":"https://api.github.com/users/jhedberg/orgs","repos_url":"https://api.github.com/users/jhedberg/repos","events_url":"https://api.github.com/users/jhedberg/events{/privacy}","received_events_url":"https://api.github.com/users/jhedberg/received_events","type":"User","site_admin":false},"assignees":[{"login":"jhedberg","id":1032570,"avatar_url":"https://avatars0.githubusercontent.com/u/1032570?v=4","gravatar_id":"","url":"https://api.github.com/users/jhedberg","html_url":"https://github.com/jhedberg","followers_url":"https://api.github.com/users/jhedberg/followers","following_url":"https://api.github.com/users/jhedberg/following{/other_user}","gists_url":"https://api.github.com/users/jhedberg/gists{/gist_id}","starred_url":"https://api.github.com/users/jhedberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhedberg/subscriptions","organizations_url":"https://api.github.com/users/jhedberg/orgs","repos_url":"https://api.github.com/users/jhedberg/repos","events_url":"https://api.github.com/users/jhedberg/events{/privacy}","received_events_url":"https://api.github.com/users/jhedberg/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/milestones/24","html_url":"https://github.com/zephyrproject-rtos/zephyr/milestone/24","labels_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/milestones/24/labels","id":2786862,"number":24,"title":"v1.8.x","description":null,"creator":{"login":"zephyrbot","id":26360365,"avatar_url":"https://avatars1.githubusercontent.com/u/26360365?v=4","gravatar_id":"","url":"https://api.github.com/users/zephyrbot","html_url":"https://github.com/zephyrbot","followers_url":"https://api.github.com/users/zephyrbot/followers","following_url":"https://api.github.com/users/zephyrbot/following{/other_user}","gists_url":"https://api.github.com/users/zephyrbot/gists{/gist_id}","starred_url":"https://api.github.com/users/zephyrbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zephyrbot/subscriptions","organizations_url":"https://api.github.com/users/zephyrbot/orgs","repos_url":"https://api.github.com/users/zephyrbot/repos","events_url":"https://api.github.com/users/zephyrbot/events{/privacy}","received_events_url":"https://api.github.com/users/zephyrbot/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":4,"state":"closed","created_at":"2017-09-23T12:50:02Z","updated_at":"2017-12-08T13:00:38Z","due_on":null,"closed_at":"2017-12-08T13:00:38Z"},"comments":7,"created_at":"2017-04-07T07:14:14Z","updated_at":"2018-05-25T05:21:46Z","closed_at":"2017-09-23T17:37:06Z","author_association":"COLLABORATOR","body":"**_Reported by guiwu guo:_**\n\rI use NRF52_PCA10040 to development a bluetooth application, I found that when a connect time out after call bt_conn_create_le, it does not have any callback to connected or disconnected. APP does not know the connect is fail.\r\nAnd it is easy to reproduce when two central try to connect a same peripheral at a same time, one of the central will get connect timeout.\n\r(Imported from Jira ZEP-2005)"},"comment":{"url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/issues/comments/391944373","html_url":"https://github.com/zephyrproject-rtos/zephyr/issues/3446#issuecomment-391944373","issue_url":"https://api.github.com/repos/zephyrproject-rtos/zephyr/issues/3446","id":391944373,"user":{"login":"jhedberg","id":1032570,"avatar_url":"https://avatars0.githubusercontent.com/u/1032570?v=4","gravatar_id":"","url":"https://api.github.com/users/jhedberg","html_url":"https://github.com/jhedberg","followers_url":"https://api.github.com/users/jhedberg/followers","following_url":"https://api.github.com/users/jhedberg/following{/other_user}","gists_url":"https://api.github.com/users/jhedberg/gists{/gist_id}","starred_url":"https://api.github.com/users/jhedberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhedberg/subscriptions","organizations_url":"https://api.github.com/users/jhedberg/orgs","repos_url":"https://api.github.com/users/jhedberg/repos","events_url":"https://api.github.com/users/jhedberg/events{/privacy}","received_events_url":"https://api.github.com/users/jhedberg/received_events","type":"User","site_admin":false},"created_at":"2018-05-25T05:21:45Z","updated_at":"2018-05-25T05:21:45Z","author_association":"MEMBER","body":"Thanks for providing feedback @jonpry \r\n\r\n> When bt_conn state is BT_CONN_CONNECT_SCAN, the scanner does not appear to have any actual mechanism to timeout. So if no further advertisements are seen from the device, it can never timeout.\r\n\r\nThat's by design. The actual connecting phase must have a timeout since it blocks the controller from doing other things, but scanning does not. If you want to cancel an ongoing connection attempt you can always call bt_conn_disconnect().\r\n\r\n> If the scan is seen, and bt_conn moves to BT_CONN_CONNECT, the timeout will work. However I am seeing spurious faults in a call to bt_recv_prio() from le_create_conn_cancel() in this case. Commenting out the call to bt_recv_prio() fixes that particular issue but I am unsure of the consequences.\r\n\r\nThis is controller code which I'm not familiar with. We'd need to have the controller folks comment on it. @carlescufi @cvinayak any comments?\r\n"}}
{"actor":{"display_login":"jhedberg"}}