From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: Jaganath <jaganath.k@samsung.com>
Cc: Johan Hedberg <johan.hedberg@gmail.com>, linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH obexd 1/2] gobex: flush tx_queue before disconnection
Date: Fri, 16 Mar 2012 16:31:58 +0200 [thread overview]
Message-ID: <CABBYNZLibp5+LE3ESgrn4Woj+eOx=f0y-FvZq0Xw-F7T8sSE5g@mail.gmail.com> (raw)
In-Reply-To: <89B53B23AEC845998BA7BD97586A5556@sisodomain.com>
Hi,
On Mon, Mar 12, 2012 at 7:42 AM, Jaganath <jaganath.k@samsung.com> wrote:
> I have already sent a patch which wait for abort response before
> disconnection.
> Subject: [PATCH obexd] client: Fix ABORT command not sending when user
> cancels the transfer.
> Please review it and let me know your comments
Afaik it didn't invalidate the transfer id thus the callback and
user_data are still reachable so you might need to check again, also
it should no longer be possible to cancel using the same id too.
My proposal was actually to add g_obex_flush/g_obex_shutdown which can
be used similarly to g_io_channel_shutdown, although for this specific
problem it may not be the best solution due to stacks breaking if the
transport is disconnected while responding, in case of SRM there maybe
no response to wait and several packet are queued waiting POLL_OUT
while the application wants to disconnect.
Btw I don't think calling write_data will block since the io channel
should be non-blocking so we could have the same behavior as
g_io_channel_shutdown and return G_IO_STATUS_AGAIN if the packets
could not be flushed.
--
Luiz Augusto von Dentz
prev parent reply other threads:[~2012-03-16 14:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-08 6:48 [PATCH obexd 1/2] gobex: flush tx_queue before disconnection Jaganath Kanakkassery
2012-03-08 23:42 ` Johan Hedberg
2012-03-09 12:33 ` Jaganath
2012-03-09 13:08 ` Johan Hedberg
2012-03-12 5:42 ` Jaganath
2012-03-16 14:31 ` Luiz Augusto von Dentz [this message]
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='CABBYNZLibp5+LE3ESgrn4Woj+eOx=f0y-FvZq0Xw-F7T8sSE5g@mail.gmail.com' \
--to=luiz.dentz@gmail.com \
--cc=jaganath.k@samsung.com \
--cc=johan.hedberg@gmail.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).