From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: PATCH: add support for TCP_NODELAY on network streams Date: Wed, 11 Dec 2024 17:37:15 +0200 Message-ID: <861pye44es.fsf@gnu.org> References: <7292e8f5-2be9-4c76-b473-882ff437ad93@risk-engineering.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6435"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eric Marsden Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 11 16:37:32 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tLOmK-0001UT-0I for ged-emacs-devel@m.gmane-mx.org; Wed, 11 Dec 2024 16:37:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLOm8-0007qU-Or; Wed, 11 Dec 2024 10:37:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tLOm6-0007pm-Gb for emacs-devel@gnu.org; Wed, 11 Dec 2024 10:37:18 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tLOm6-0001Ik-8T; Wed, 11 Dec 2024 10:37:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=PXsINiwjCEAmbTIFrHdnTIVY+omoX+7LslgekCnfdwU=; b=aBeLoZnu1Dqq zwNDmxTCi8woYwi2JsV4kUF3NH2RCRGN9SAYIlY+s1mX5iUDA4sdvLezz4tQiKZBp9J2FVFsIDgbD Z1DBUo3pRukACc1h8shiVH73klkj9VtTdCk5iZD9DTXY9WgyZGmmVj9T61L6tyVpU9DjqqHhB3E2q EVOKCD8GLfr/0oqtbm8DGbSEgI7HqbjscJNOi+qY1QyCN0Zqp1h/PojmGiW+zEhYWqrRmZgJkhaQp 0ISY9tRT+hI1/9BcbCUhseX0d8Jgner3xc+JHu2pjVr3cgzOtl+PxFiOs/aoGeZ7gTLSawye/KhNc U3Al00RlWvk5aMK2d3VaWQ==; In-Reply-To: <7292e8f5-2be9-4c76-b473-882ff437ad93@risk-engineering.org> (message from Eric Marsden on Wed, 11 Dec 2024 11:51:27 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:326357 Archived-At: > Date: Wed, 11 Dec 2024 11:51:27 +0100 > From: Eric Marsden > > The attached patch adds support for the socket option TCP_NODELAY, > to disable Nagle's algorithm. This means that network segments are > sent as soon as possible, even when they contain little data. This > reduces network latency on the network connection, but can lead to > many small packets being sent. Thanks, but please in the future send patches to the bug tracker (we have a submit-emacs-patch command for that). > +@item :nodelay @var{nodelay-flag} > +If @var{nodelay-flag} is non-@code{nil}, the @code{TCP_NODELAY} option > +is enabled on the socket. This disables the Nagle algorithm, meaning > +that network segments are sent as soon as possible, even when they > +contain little data. This reduces network latency on the network > +connection, but can lead to many small packets being sent. Our conventions are to leave two spaces between sentences.