From: Alan Martinovic <alan.martinovic@senic.com>
To: linux-bluetooth@vger.kernel.org
Subject: Setting a timeout for device_connect_le()
Date: Wed, 21 Feb 2018 15:04:17 +0100 [thread overview]
Message-ID: <CAOT_U5Y7+qMsUrmqTpJ1nP3py_jzZyfNtO2ySeVQRO3V0BsP5A@mail.gmail.com> (raw)
Hi,
is it possible to set up a timeout for `device_connect_le()`?
Here is the output from the logs that explains it more clearly:
../bluez-5.46/src/device.c:att_disconnected_cb() Automatic
connection disabled
../bluez-5.46/attrib/gattrib.c:g_attrib_unref() 0xe04c8: g_attrib_unref=0
../bluez-5.46/src/device.c:device_connect_le() Connection attempt
to: F5:D4:41:9C:86:B0
#### 40+ seconds of waiting
#### can this be timed out after 10s?
../bluez-5.46/src/device.c:att_connect_cb() connect error:
Connection refused (111)
Is it possible to enforce a fixed timeout for this?
Be Well,
Alan
reply other threads:[~2018-02-21 14:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAOT_U5Y7+qMsUrmqTpJ1nP3py_jzZyfNtO2ySeVQRO3V0BsP5A@mail.gmail.com \
--to=alan.martinovic@senic.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).