From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS6939 64.71.128.0/18 X-Spam-Status: No, score=-1.0 required=3.0 tests=AWL,BAYES_00,FREEMAIL_FROM, FROM_STARTS_WITH_NUMS,MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=no version=3.3.2 Path: news.gmane.org!not-for-mail From: 375gnu <375gnu@gmail.com> Newsgroups: gmane.comp.lang.ruby.kgio.general Subject: Re: kgio, autopush test fails on Debian GNU/kFreeBSD Date: Mon, 5 Mar 2012 21:59:51 +0300 Message-ID: References: <20120305084323.GA18294@dcvr.yhbt.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1330974314 6580 80.91.229.3 (5 Mar 2012 19:05:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 5 Mar 2012 19:05:14 +0000 (UTC) To: kgio@librelist.org Original-X-From: kgio@librelist.org Mon Mar 05 20:05:13 2012 Return-path: Envelope-to: gclrkg-kgio@m.gmane.org List-Archive: List-Help: List-Id: List-Post: List-Subscribe: List-Unsubscribe: Precedence: list Original-Sender: kgio@librelist.org Xref: news.gmane.org gmane.comp.lang.ruby.kgio.general:90 Archived-At: Received: from zedshaw.xen.prgmr.com ([64.71.167.205]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S4dDY-0008Hn-IB for gclrkg-kgio@m.gmane.org; Mon, 05 Mar 2012 20:05:08 +0100 Received: from zedshaw.xen.prgmr.com (localhost [IPv6:::1]) by zedshaw.xen.prgmr.com (Postfix) with ESMTP id EB3FA21D35A for ; Mon, 5 Mar 2012 19:10:59 +0000 (UTC) On 3/5/12, Eric Wong wrote: >> In the last assertion getsockopt returns 0. May be it's good behavior for >> GNU/kFreeBSD, I don't know. > > I think this problem is partially caused by eglibc/glibc failing to > define TCP_NOPUSH in the headers. No, /usr/include/netinet/tcp.h has definition for TCP_NOPUSH. There is a Debian specific patch which defines it. >> def test_autopush_accessors >> Kgio.autopush = true >> opt = RUBY_PLATFORM =~ /freebsd/ ? TCP_NOPUSH : TCP_CORK > > And I suspect RUBY_PLATFORM is "gnu/kfreebsd" or something and > matches :x "x86_64-kfreebsd-gnu" on amd64 -- https://375gnu.wordpress.com/ https://launchpad.net/~375gnu/+archive/ppa