[PATCH] Core: handle getsockopt(TCP_FASTOPEN) failures.

Maxim Dounin mdounin at mdounin.ru
Fri Jan 31 18:03:47 UTC 2014


Hello!

On Thu, Jan 30, 2014 at 03:06:12PM -0800, Piotr Sikora wrote:

> # HG changeset patch
> # User Piotr Sikora <piotr at cloudflare.com>
> # Date 1391122701 28800
> #      Thu Jan 30 14:58:21 2014 -0800
> # Node ID a2abc0e037c87626b30341014d8a35c36adf8f8f
> # Parent  2e40188f83ef5bf1ae5afe0dd445689049f46a5c
> Core: handle getsockopt(TCP_FASTOPEN) failures.
> 
> Linux returns EOPNOTSUPP for non-TCP sockets and ENOPROTOOPT for TCP
> sockets, because getsockopt(TCP_FASTOPEN) is not implemented so far.
> 
> While there, lower the log level from ALERT to NOTICE to match other
> getsockopt() failures.
> 
> Signed-off-by: Piotr Sikora <piotr at cloudflare.com>

Committed, thanks.

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx-devel mailing list