Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 49BB8C4451B for ; Mon, 20 Jul 2026 05:35:06 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wlge5-0001gN-7C; Mon, 20 Jul 2026 01:34:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wlgdg-0001cr-IH for qemu-devel@nongnu.org; Mon, 20 Jul 2026 01:34:05 -0400 Received: from oss.nttdata.com ([49.212.34.109]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wlgde-0008VP-9A for qemu-devel@nongnu.org; Mon, 20 Jul 2026 01:34:04 -0400 Received: by oss.nttdata.com (Postfix, from userid 1024) id B097320202A2; Mon, 20 Jul 2026 14:33:34 +0900 (JST) From: Mitsuru Kariya To: Markus Armbruster Cc: Mitsuru Kariya , qemu-devel@nongnu.org, =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Paolo Bonzini , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , Eric Blake , Fabiano Rosas , Laurent Vivier , Peter Xu , Jason Wang Subject: Re: [PATCH 4/5] util/qemu-sockets: add TCP_USER_TIMEOUT support Date: Mon, 20 Jul 2026 14:33:35 +0900 Message-ID: <20260720053335.2316729-1-Mitsuru.Kariya@oss.nttdata.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <87se758rv2.fsf@pond.sub.org> References: <20260524073442.435408-5-Mitsuru.Kariya@oss.nttdata.com> <87se758rv2.fsf@pond.sub.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 1.4.3 at oss.nttdata.com X-Virus-Status: Clean Received-SPF: pass client-ip=49.212.34.109; envelope-from=kariyam@oss.nttdata.com; helo=oss.nttdata.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Thank you for reviewing, and I'm sorry for the late reply. Markus Armbruster writes: > Actually, it's "transmitted data may remain unacknowledged, or > buffered data may remain untransmitted". Moreover, the interaction > with @keep-alive is not mentioned. ... Have it point to tcp(7) for > details? Perhaps something like [...] What do you think? Agreed, thanks -- adopted in v2. I took your wording almost verbatim, with two small adjustments: - reflowed to stay within the 70-column limit the QAPI doc checker enforces (the original wrapping tripped it), and - kept "(Since 11.1)" to match the neighbouring members. The interaction with @keep-alive is left to the tcp(7) reference, as you suggested, to keep it short. I also updated the -netdev stream addr.user-timeout entry in qemu-options.hx to match (per your other comment). I've added your Suggested-by to the patch. The text now reads: # @user-timeout: maximum time in milliseconds that transmitted data # may remain unacknowledged, or buffered data may remain # untransmitted, before the connection is closed. See tcp(7) # for details. Only supported for TCP sockets on systems where # the TCP_USER_TIMEOUT socket option is defined (Linux only). # When set to 0, system setting is used. (Since 11.1)