1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Add TCP_CORK support to linux(4). This fixes one of the things Nginx

trips over.

MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D23171
This commit is contained in:
Edward Tomasz Napierala 2020-01-28 13:57:24 +00:00
parent da6d8ae6d8
commit c2d4745705
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=357203
2 changed files with 3 additions and 0 deletions

View File

@ -244,6 +244,8 @@ linux_to_bsd_tcp_sockopt(int opt)
return (TCP_NODELAY);
case LINUX_TCP_MAXSEG:
return (TCP_MAXSEG);
case LINUX_TCP_CORK:
return (TCP_NOPUSH);
case LINUX_TCP_KEEPIDLE:
return (TCP_KEEPIDLE);
case LINUX_TCP_KEEPINTVL:

View File

@ -237,6 +237,7 @@ int linux_accept(struct thread *td, struct linux_accept_args *args);
#define LINUX_TCP_NODELAY 1
#define LINUX_TCP_MAXSEG 2
#define LINUX_TCP_CORK 3
#define LINUX_TCP_KEEPIDLE 4
#define LINUX_TCP_KEEPINTVL 5
#define LINUX_TCP_KEEPCNT 6