Skip to content

Commit 08b2969

Browse files
committed
macos: add TCP_FASTOPEN_FORCE_ENABLE
This is used to disable the backoff mechanism, otherwise TFO is basically unusable. Updates rust-lang#1632 and rust-lang#1635 Definition: https://github.com/apple/darwin-xnu/blob/2ff845c2e033bd0ff64b5b6aa6063a1f8f65aa32/bsd/netinet/tcp.h#L310 Related commits/PRs: zonyitoo/tokio-tfo#5, database64128/tfo-go@c980f6b
1 parent 973c3e1 commit 08b2969

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

libc-test/semver/apple.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1349,6 +1349,7 @@ TAB2
13491349
TAB3
13501350
TABDLY
13511351
TCP_FASTOPEN
1352+
TCP_FASTOPEN_FORCE_ENABLE
13521353
TCP_KEEPALIVE
13531354
TCP_KEEPCNT
13541355
TCP_KEEPINTVL

src/unix/bsd/apple/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -3657,6 +3657,8 @@ pub const TCP_KEEPINTVL: ::c_int = 0x101;
36573657
pub const TCP_KEEPCNT: ::c_int = 0x102;
36583658
/// Enable/Disable TCP Fastopen on this socket
36593659
pub const TCP_FASTOPEN: ::c_int = 0x105;
3660+
/// Disable/Enable TCP Fastopen backoff mechanism.
3661+
pub const TCP_FASTOPEN_FORCE_ENABLE: ::c_int = 0x218;
36603662

36613663
pub const SOL_LOCAL: ::c_int = 0;
36623664

0 commit comments

Comments
 (0)