Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 73A821091E for ; Wed, 19 Jun 2013 06:52:59 +0000 (UTC) Received: (qmail 52657 invoked by uid 500); 19 Jun 2013 06:52:56 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 52606 invoked by uid 500); 19 Jun 2013 06:52:54 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 52592 invoked by uid 99); 19 Jun 2013 06:52:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Jun 2013 06:52:53 +0000 X-ASF-Spam-Status: No, hits=0.3 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_NONE,SPF_PASS,T_FRT_STOCK2 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rob444@gmail.com designates 209.85.192.175 as permitted sender) Received: from [209.85.192.175] (HELO mail-pd0-f175.google.com) (209.85.192.175) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Jun 2013 06:52:48 +0000 Received: by mail-pd0-f175.google.com with SMTP id 4so4746758pdd.34 for ; Tue, 18 Jun 2013 23:52:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=b1KFExrfUFm5dtQ5ZH4fKOliKr7f04kRmyHJjg0q6u4=; b=yGdnbH8qFVvbPIml02d1ftCXSMhOj+M4E0JK6n2qJNcQrIJD+sqZqHrXzqrgS5D+VI Nzkj35KP7VXxxQaOHdykeG1jlpjto/d8iOdhlXoALeNRJ+Ptkkad6JggQiYWlhFJNiZ3 wCv3urXj9vyYEJ41B/GEt7s4EsWC4zsI2R65vQ4E0oEONGB251ymdHam3zdeiOe7OkWU R1wDcSuVMAqE9TGTe3Uyd43b6iQLI6fhyPoDvXQjqBn/DVWdvYgCk3icXb8YQNAgK/Ls 42sr71v5CMiyvBX6RXQyFRwsRWPOhqk+Onnaqi836jKuzNLKaMiMOxBI/NxV2btexyK9 ziZg== MIME-Version: 1.0 X-Received: by 10.69.1.69 with SMTP id be5mr1417387pbd.138.1371624748518; Tue, 18 Jun 2013 23:52:28 -0700 (PDT) Received: by 10.66.76.135 with HTTP; Tue, 18 Jun 2013 23:52:28 -0700 (PDT) In-Reply-To: References: Date: Wed, 19 Jun 2013 08:52:28 +0200 Message-ID: From: Robert Schoultz To: "users@httpd.apache.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Enabling TCP fast open on apache Hello Leonas. I _believe_ TCP_FASTOPEN is disabled in the kernel by default. Is it enable= d? Try this and see if it helps: echo 1 > /proc/sys/net/ipv4/tcp_fastopen /Rob On Sat, Jun 15, 2013 at 12:43 PM, Leonas Sutkevi=C4=8Dius wrote: > Hello, > > I'm trying to enable TCP fast open on Apache server. In order to do that = I > need to tamper with source a bit. Basically I need to insert setsockopt() > call between bind() and listen() calls as written in this article > http://lwn.net/Articles/508865/ . What I did is I've inserted the followi= ng > lines > int qlen =3D 5; > > setsockopt(sock->socketdes, 6, 23, &qlen, sizeof(qlen)); > > In unix/sockets.c after line 196 in apr library. Im using ubuntu 12.04 wi= th > 3.7.8 kernel. > > After these changes server still doesn't seem to be using TCP fast open. = It > doesn't provide client with TFO cookie. So my question is this the correc= t > spot spot to insert the patch. Do you have any ideas why this might not b= e > working? > > Regards, > > Leonas --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org