* [PATCH] Fix control channel shutdown in case of errors.
@ 2011-02-04 21:51 jaikumar
2011-02-07 23:41 ` Johan Hedberg
0 siblings, 1 reply; 2+ messages in thread
From: jaikumar @ 2011-02-04 21:51 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Jaikumar Ganesh
From: Jaikumar Ganesh <jaikumar@google.com>
When there are connection errors, like host is down, when
establishing the control channel connection, the control io
channel was not being shutdown. This will cause future
connections to fail.
---
input/device.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/input/device.c b/input/device.c
index 5cb57ea..21f8329 100644
--- a/input/device.c
+++ b/input/device.c
@@ -856,6 +856,7 @@ static void control_connect_cb(GIOChannel *chan, GError *conn_err,
error("%s", conn_err->message);
reply = btd_error_failed(iconn->pending_connect,
conn_err->message);
+ g_io_channel_shutdown(chan, TRUE, NULL);
goto failed;
}
--
1.7.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix control channel shutdown in case of errors.
2011-02-04 21:51 [PATCH] Fix control channel shutdown in case of errors jaikumar
@ 2011-02-07 23:41 ` Johan Hedberg
0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2011-02-07 23:41 UTC (permalink / raw)
To: jaikumar; +Cc: linux-bluetooth
Hi Jaikumar,
On Fri, Feb 04, 2011, jaikumar@google.com wrote:
> When there are connection errors, like host is down, when
> establishing the control channel connection, the control io
> channel was not being shutdown. This will cause future
> connections to fail.
> ---
> input/device.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
Thanks, there were several other issues present (which we already
discussed) so a little bit different (and more comprehensive) patch has
now been pushed upstream.
Johan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-02-07 23:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-04 21:51 [PATCH] Fix control channel shutdown in case of errors jaikumar
2011-02-07 23:41 ` Johan Hedberg
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).