Re: Enabling TCP fast open on apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Leonas.

I _believe_ TCP_FASTOPEN is disabled in the kernel by default. Is it enabled?

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čius <neonasl@xxxxxxxxx> 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 following
> lines
> int qlen = 5;
>
> setsockopt(sock->socketdes, 6, 23, &qlen, sizeof(qlen));
>
> In unix/sockets.c after line 196 in apr library. Im using ubuntu 12.04 with
> 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 correct
> spot spot to insert the patch. Do you have any ideas why this might not be
> working?
>
> Regards,
>
> Leonas

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx






[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux