]> git.kaiwu.me - nginx.git/commit
Core: handle getsockopt(TCP_FASTOPEN) failures.
authorPiotr Sikora <piotr@cloudflare.com>
Thu, 30 Jan 2014 22:58:21 +0000 (14:58 -0800)
committerPiotr Sikora <piotr@cloudflare.com>
Thu, 30 Jan 2014 22:58:21 +0000 (14:58 -0800)
commit2e57e0609b8cc352fb51df0b0e05309d1cf9589d
tree85bd1f6c3701f815f2178a715332893dc87d4c24
parent449e8eeb53d33d6a62622b76bf4862ca983b44f3
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@cloudflare.com>
src/core/ngx_connection.c
src/os/unix/ngx_errno.h
src/os/win32/ngx_errno.h