* Setting a timeout for device_connect_le()
@ 2018-02-21 14:04 Alan Martinovic
0 siblings, 0 replies; only message in thread
From: Alan Martinovic @ 2018-02-21 14:04 UTC (permalink / raw)
To: linux-bluetooth
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-02-21 14:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-21 14:04 Setting a timeout for device_connect_le() Alan Martinovic
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).