From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ v1 1/2] sco-tester: Fix closing the socket
Date: Tue, 11 Mar 2025 15:42:25 -0400 [thread overview]
Message-ID: <20250311194226.15109-1-luiz.dentz@gmail.com> (raw)
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
When writting data the socket shall not be closed until all the data
could be transmitted or the test times out.
---
tools/sco-tester.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/sco-tester.c b/tools/sco-tester.c
index e6888348bfab..b88631d89034 100644
--- a/tools/sco-tester.c
+++ b/tools/sco-tester.c
@@ -821,6 +821,9 @@ static gboolean sco_connect_cb(GIOChannel *io, GIOCondition cond,
errno);
err = -errno;
}
+
+ /* Don't close the socket until all data is sent */
+ g_io_channel_set_close_on_unref(io, FALSE);
}
if (scodata->shutdown) {
--
2.48.1
next reply other threads:[~2025-03-11 19:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-11 19:42 Luiz Augusto von Dentz [this message]
2025-03-11 19:42 ` [PATCH BlueZ v1 2/2] btdev: Fix double lookup Luiz Augusto von Dentz
2025-03-11 21:11 ` [BlueZ,v1,1/2] sco-tester: Fix closing the socket bluez.test.bot
2025-03-12 14:40 ` [PATCH BlueZ v1 1/2] " patchwork-bot+bluetooth
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=20250311194226.15109-1-luiz.dentz@gmail.com \
--to=luiz.dentz@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.