From owner-freebsd-stable@FreeBSD.ORG Thu Nov 7 23:10:36 2013 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 66AC06A3 for ; Thu, 7 Nov 2013 23:10:36 +0000 (UTC) (envelope-from sobomax@sippysoft.com) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com [209.85.215.53]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E69532592 for ; Thu, 7 Nov 2013 23:10:35 +0000 (UTC) Received: by mail-la0-f53.google.com with SMTP id eh20so1001849lab.26 for ; Thu, 07 Nov 2013 15:10:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:date:message-id:subject:from :to:content-type; bh=BGpxGCLdD7D851QpnkQwiyBj4QUEhOC5wMc9Ka7MlWk=; b=DbFzT0dkGXdpusTufum8B3lw2PoFnRCPh/vDROHVTQ8ERPJeqoOogEro8r5JLHORRr vMhHmKoxv6jGm8KdAlX/5fE/xOaWKrAuR9EsRYMmqm0qooOU/jHZxdrvTgDqXXTuzOLB h3WvwA2yDjSWXQNdAgp2ERnMW8kYG7szISkYeEDquRNgPgeKGEbPfZDP0nmKkukHTfMT gvu/LhKSuMyFkm0zI1De/PKnrg+TbXWL1PnYKGpZO32J4fWuXHAa+fHJbztQwfpM4gds WUAuwXUvzNFgkISxJ9nQc3IiJiGahzIKlastKtVHfdO5BDqqZWzs0+Ec+ddoK/HoA2dM zI5g== X-Gm-Message-State: ALoCoQmm1cy8J5rZQ+vfPsWZIE2pkL2E5jp2i71qPfaom4mMPOy+TiXwaZSd3U2wF5dHCTL8zJIG MIME-Version: 1.0 X-Received: by 10.112.72.233 with SMTP id g9mr1150423lbv.2.1383865827426; Thu, 07 Nov 2013 15:10:27 -0800 (PST) Sender: sobomax@sippysoft.com Received: by 10.114.230.66 with HTTP; Thu, 7 Nov 2013 15:10:27 -0800 (PST) Date: Thu, 7 Nov 2013 15:10:27 -0800 X-Google-Sender-Auth: rj8-0zQzTnhC3Orrji5krkd8cQg Message-ID: Subject: Re: svn commit: r232945 - in stable/9: share/man/man4 sys/i386/conf sys/netinet sys/sys From: Maxim Sobolev To: glebius@FreeBSD.org, andre@FreeBSD.org, bz@FreeBSD.org, lstewart@FreeBSD.org, pgsql@FreeBSD.org, stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Nov 2013 23:10:36 -0000 Hey guys, any particular reasons why those options are write-only? Is it just laziness of the developer or is there any particular fundamental reason for it being like this. This might be some regression, since at least some 3rd party software that does getsockopt(), checks its status and only does setsockopt() if the former completed successfully. Which kinda makes sense IMHO. The software in question is PostgreSQL here. As a result, the software may be misbehaving since it detects those options as being present on the configure stage, but cannot really make any use of them later on during runtime. Had it not detect those options at the build stage, it might have used some kind of software protocol workaround (i.e. sending ping/nop packets) so it in fact might trigger some bugs and whatnot. We believe it might be the reason for some of our problems here with PG 91 and FreeBSD 92. > Log: > Merge 231025 from head: > Add new socket options: TCP_KEEPINIT, TCP_KEEPIDLE, TCP_KEEPINTVL and > TCP_KEEPCNT, that allow to control initial timeout, idle time, idle > re-send interval and idle send count on a per-socket basis. > > Reviewed by: andre, bz, lstewart > Nov 7 16:04:01 sip-dc postgres[64004]: [13-1] LOG: getsockopt(TCP_KEEPCNT) failed: Protocol not available Nov 7 16:04:01 sip-dc postgres[64004]: [14-1] LOG: getsockopt(TCP_KEEPIDLE) failed: Protocol not available Nov 7 16:04:01 sip-dc postgres[64004]: [15-1] LOG: getsockopt(TCP_KEEPINTVL) failed: Protocol not available Nov 7 16:04:02 sip-dc postgres[64140]: [13-1] LOG: getsockopt(TCP_KEEPCNT) failed: Protocol not available Nov 7 16:04:02 sip-dc postgres[64140]: [14-1] LOG: getsockopt(TCP_KEEPIDLE) failed: Protocol not available Nov 7 16:04:02 sip-dc postgres[64140]: [15-1] LOG: getsockopt(TCP_KEEPINTVL) failed: Protocol not available -Maxim