examples: add FD table pre-warming example (#7978)

This commit is contained in:
Jess Izen
2026-03-26 08:17:27 -07:00
committed by GitHub
parent 467d614267
commit a8435c0fc8
4 changed files with 103 additions and 1 deletions
+7
View File
@@ -24,6 +24,9 @@ httparse = "1.0"
httpdate = "1.0"
once_cell = "1.5.2"
[target.'cfg(target_os = "linux")'.dev-dependencies]
libc = "0.2"
[target.'cfg(all(tokio_unstable, target_os = "linux"))'.dev-dependencies]
tokio = { version = "1.0.0", path = "../tokio", features = ["full", "tracing", "taskdump"] }
@@ -102,5 +105,9 @@ path = "named-pipe-multi-client.rs"
name = "dump"
path = "dump.rs"
[[example]]
name = "prewarm-fd-table"
path = "prewarm-fd-table.rs"
[lints]
workspace = true