From: Szymon Janc <szymon.janc@codecoup.pl>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH BlueZ] gatt: Fix not sending any data when server supports AcquireWrite
Date: Tue, 07 Apr 2020 09:14:32 +0200 [thread overview]
Message-ID: <4198260.fHHya7ajGy@ix> (raw)
In-Reply-To: <20200406211903.12549-1-luiz.dentz@gmail.com>
Hi Luiz,
On Monday, 6 April 2020 23:19:03 CEST Luiz Augusto von Dentz wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
>
> msg.msg_iovlen should be set to 1 to forward the data received over the
> file descriptor.
> ---
> src/gatt-database.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/gatt-database.c b/src/gatt-database.c
> index 483c84341..db67dd3f8 100644
> --- a/src/gatt-database.c
> +++ b/src/gatt-database.c
> @@ -2396,6 +2396,7 @@ static int sock_io_send(struct io *io, const void
> *data, size_t len)
>
> memset(&msg, 0, sizeof(msg));
> msg.msg_iov = &iov;
> + msg.msg_iovlen = 1;
>
> return sendmsg(io_get_fd(io), &msg, MSG_NOSIGNAL);
> }
Applied, thanks.
--
pozdrawiam
Szymon Janc
prev parent reply other threads:[~2020-04-07 7:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-06 21:19 [PATCH BlueZ] gatt: Fix not sending any data when server supports AcquireWrite Luiz Augusto von Dentz
2020-04-07 7:14 ` Szymon Janc [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=4198260.fHHya7ajGy@ix \
--to=szymon.janc@codecoup.pl \
--cc=linux-bluetooth@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
/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).