From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6204 invoked by alias); 31 Jul 2019 19:32:27 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 6197 invoked by uid 89); 31 Jul 2019 19:32:27 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=xilinx, Who, Xilinx X-HELO: smtp-out-no.shaw.ca Received: from smtp-out-no.shaw.ca (HELO smtp-out-no.shaw.ca) (64.59.134.9) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 31 Jul 2019 19:32:25 +0000 Received: from [192.168.1.114] ([24.64.172.44]) by shaw.ca with ESMTP id suKkhdGE5sAGksuKlhSVBn; Wed, 31 Jul 2019 13:32:23 -0600 From: Brian Inglis Subject: Re: TCP_CORK (aka TCP_NOPUSH) does not work Reply-To: Brian.Inglis@SystematicSw.ab.ca To: cygwin@cygwin.com References: Openpgp: preference=signencrypt Message-ID: Date: Wed, 31 Jul 2019 19:32:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-07/txt/msg00292.txt.bz2 On 2019-07-30 22:48, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin wrote: >> Regular SO options on Windows: > > I did not ask about Windows options. I asked about a feature that is > defined in Cygwin yet appears not functional. You are running Windows sockets under Cygwin emulation. Linux and BSD options are not available, whatever the .h #defines. >> You can abuse Nagle to get similar behaviour cross-platform: > This is not the same thing! This is your only option. >> ENOPROTOOPT (109)... "The option is not supported by the protocol." > > Indeed the textual description does not match, and should be changed in Cygwin. Although, I'm sure it was copied over from Linux, which does not define it properly (probably, historically), either: > > #define ENOPROTOOPT 92 /* Protocol not available */ > > BTW, Windows does that correctly: > > WSAENOPROTOOPT (10042) = "Bad protocol option" >> If a socket option is defined, perhaps for compatibility, it should either be >> used or ignored, rather than giving an error. >> If you are not going to support a socket option, and generate an error, it would >> be better to not define the option and generate the error at compile time, >> instead of failing at run time. > Who are you suggesting this to? Anyone who wants to volunteer to remove non-functional socket options: that's how Cygwin works. Input from folks who use and maintain this stuff would be good, before any of us jump in and delete stuff. Many header and library files are shared with newlib, which is used by Cygwin, RTEMS, other embedded non-Linux OSes, many common boards using ARM, Renesas, and Xilinx chips, most commercial and non-commercial GCC ports and distributions for non-Linux embedded systems, so conditionalization is often required, unless newlib provides its own separate version(s) of a header or library file. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple