Re: [hybi] Encourage disabling Nagle in the standard text?

Jacob Champion <> Wed, 19 April 2017 04:09 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 326A1126CF6 for <>; Tue, 18 Apr 2017 21:09:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: (amavisd-new); dkim=pass (2048-bit key)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id mSLXGEdfcIr9 for <>; Tue, 18 Apr 2017 21:09:37 -0700 (PDT)
Received: from ( [IPv6:2607:f8b0:400e:c00::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by (Postfix) with ESMTPS id A9C8C131500 for <>; Tue, 18 Apr 2017 21:09:37 -0700 (PDT)
Received: by with SMTP id v14so2515327pfd.2 for <>; Tue, 18 Apr 2017 21:09:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=eQnuSWF6tICgUNWnfl0PQxL3zp9Vi45vvBSuRZ9YPbI=; b=b4pRyTakJf637f0DkSviNygoQP/FRuTb6BxaEK8a89gh53+4spHB54BGocaDcI+OxC X9B3q5Kgn35kycxGXc4z45YWVGTygOhsfJ8Zxq67qwAgCo9XTwEU5oe7SB+WkiImjZld XH7ZpZHD3Ene9KjbuGCYAXZQs2d+2Ho24NZKWcQjEtt2aoRSg5PcEbQI/bFMmMMlxRgp 6xxVA4RYvluzoTLbvB7wu3bol7Arqsirb8M0QVsJhh4/bW0XHOtU7/IqQyVqqeIXhsFj NGHIt7QzgTiEDLjo5s/UcLjZ7WEM4UCISilkMPl9u74GIDmlr9uBknARiBV3C0ajd/Bl A2Ig==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=eQnuSWF6tICgUNWnfl0PQxL3zp9Vi45vvBSuRZ9YPbI=; b=lCGbRd0pwlaJ/viCcS6co6vJixTIYGiNC716nHaz60jch/aYZLChMGGFPa5wBtyvWm njAam882TnNhgS7JL2THAqkIuiTBSWiHpqU7RWdf7AXBQ7BFREN88wo/9Hwhb79JtJR5 vp5Crc6d5s3DGqgdkR2QRX2TjOIdGzvICEbhFqVNmFl3bleLWoOlsg5Kok5yjLeqXHyw E2lEZde2HaofCnSEYmgOgisLdOoNZGcwHdZKkQKLZsi+GqwTXuk1fsdmPqwXiKOa4ger fCxY0xJQaTydMCqCb7po3A68CcA0F5BR6cKNneeLmsk3tDK8M4BQp+z/Iz4NwdNHyhaV 1O9w==
X-Gm-Message-State: AN3rC/6Uf8xjb31ZhmmVtZ+HUcZIR4rn8iECKQHXbNDMtuKxU7WK9LVX D/KGbevwXSQisUe/6vw=
X-Received: by with SMTP id k21mr934718pgj.10.1492574977109; Tue, 18 Apr 2017 21:09:37 -0700 (PDT)
Received: from [] ( []) by with ESMTPSA id z5sm1185975pfd.76.2017. for <> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Apr 2017 21:09:36 -0700 (PDT)
References: <> <>
From: Jacob Champion <>
Message-ID: <>
Date: Tue, 18 Apr 2017 21:09:35 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: <>
Subject: Re: [hybi] Encourage disabling Nagle in the standard text?
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Server-Initiated HTTP <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Wed, 19 Apr 2017 04:09:39 -0000

On 04/18/2017 07:57 PM, Andy Green wrote:
> libwebsockets always disables Nagle...

mod_websocket does too, simply because httpd disables it for all

> AFAIK there is no value to it for general ws use. But I dunno it
> needs the standard changing, if things have higher than expected
> latencies people will probably work it out for themselves.

Yeah. Seems like it would be subprotocol-specific... if I write a Telnet
clone over WebSocket, suddenly Nagle might make a lot of sense. But I'd
have to make sure to TCP_CORK my control frames so that they got flushed

See also .