Skip to content

Commit 0469f7c

Browse files
committed
feat(quic): disable GRO on Windows by default
Related: quinn-rs/quinn#2092
1 parent b4fe7e4 commit 0469f7c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

compio-quic/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ native-certs = ["dep:rustls-native-certs"]
7070
webpki-roots = ["dep:webpki-roots"]
7171
h3 = ["dep:h3", "dep:h3-datagram"]
7272
ring = ["quinn-proto/rustls-ring"]
73+
windows-gro = []
7374

7475
[[example]]
7576
name = "http3-client"

compio-quic/src/socket.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ impl Socket {
277277
if set_socket_option!(socket, libc::SOL_UDP, libc::UDP_GRO, &1) {
278278
max_gro_segments = 64;
279279
}
280-
#[cfg(windows)]
280+
#[cfg(all(windows, feature = "windows-gro"))]
281281
if set_socket_option!(
282282
socket,
283283
WinSock::IPPROTO_UDP,

0 commit comments

Comments
 (0)