> Huh ? It is already present a few lines above :
Correct, I was just confused about it because the other keywords like
defer-accept or v4v6 are also present twice and tfo was missing below
the comment: /* the versions with the NULL parse function*/.
lukas@ubuntuvm:~/haproxy-ss-20130125/src$ grep defer-accept proto_tcp.c
/* parse the "defer-accept" bind keyword */
/* parse the "defer-accept" bind keyword */
{ "defer-accept", bind_parse_defer_accept, 0 }, /* wait for some data
for 1 second max before doing accept */
{ "defer-accept", NULL, 0 },
lukas@ubuntuvm:~/haproxy-ss-20130125/src$
> I think your libc simply does not define TCP_FASTOPEN which is very
> recent. You should simply do like me, pass DEFINE="-DTCP_FASTOPEN=23"
> to make when building.
Thats it. I reverted my patch in proto_tcp.c and defined it when building,
now haproxy starts fine with the tfo option.
Looks like glibc only has support for TCP_FASTOPEN in the unreleased 2.18
version [1] and I'm using glibc 2.15 here.
> If your mailer causes too much trouble, you can export a patch with git
> in mailbox format
Well the problem is I need to some hands-on with git in first place ...
I hope I can eventually send patches directly from git, without going through
the mailer at all.
Lukas
[1]
http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=e83d72988d89378e7c70a1b7ba0b450a699ea70a