From owner-freebsd-hackers@FreeBSD.ORG Mon Oct 12 18:21:15 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 994041065670; Mon, 12 Oct 2009 18:21:15 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from mail-ew0-f218.google.com (mail-ew0-f218.google.com [209.85.219.218]) by mx1.freebsd.org (Postfix) with ESMTP id D13858FC0C; Mon, 12 Oct 2009 18:21:14 +0000 (UTC) Received: by ewy18 with SMTP id 18so3041824ewy.43 for ; Mon, 12 Oct 2009 11:21:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to:cc :content-type:content-transfer-encoding; bh=M05wIYy5CzV2neyo8V8PtxYtiIpjt9z7bfyoJly+BVY=; b=CuJDZk3JEIOagnbWV8lAzgeICFl0V2DukHUvm0IwEelodE886ZIpSZp77YaQs7pUla //5DbEswQKFcaXoWIIxZAHhj1tWxEP1J1lk9Mf9QZgjUAcPSECmoOjOsUVJMjfzqSoCb VovpWdHAL52tPZ9FYtl/pSton1IStykNvYaTA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=E+ZsXMXHY+sH7AhDAVbQtn8GFndEprs2wLjTdEh1IsecolVZFpwAbzw9xoYPmbQ58M tgLJTqGsf/7FAfotNwcaWZyVTB2IxUDfVTkv5UMhE7Z3yo59oj2UxcSXf3AvJ+wOsD2e bRihnHG3kgYhHN2NwSBLffe5kMaRLOZ0ZmyPQ= MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.216.89.14 with SMTP id b14mr2149597wef.76.1255371673770; Mon, 12 Oct 2009 11:21:13 -0700 (PDT) In-Reply-To: References: <20091012152248.GJ79298@elvis.mu.org> <9bbcef730910121028q7185cb47sd5780fbb0b8f59ad@mail.gmail.com> From: Ivan Voras Date: Mon, 12 Oct 2009 20:19:43 +0200 X-Google-Sender-Auth: 2f89235ead7d5470 Message-ID: <9bbcef730910121119r3f7809dfo23c5f2ecdf7b289c@mail.gmail.com> To: Robert Watson Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, Alfred Perlstein Subject: Re: "global" TCP_NODELAY? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Oct 2009 18:21:15 -0000 2009/10/12 Robert Watson : > Create a libc wrapper that calls setsockopt(2) whenever socket(2) is call= ed > to create a TCP socket in php, and inject it using LD_PRELOAD. =C2=A0This= is a > similar trick to what things like socks proxy library wrappers use, is ea= sy > to hack together, and avoids having to modify the kernel. This is actually the sanest idea I've yet come across, including modifying PHP :)