Skip to content

Commit 2435b60

Browse files
chore: update to socket2 dependency to v0.6
Pull-Request: #6093.
1 parent 28fa068 commit 2435b60

File tree

5 files changed

+28
-18
lines changed

5 files changed

+28
-18
lines changed

Cargo.lock

Lines changed: 23 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protocols/mdns/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ libp2p-swarm = { workspace = true }
1818
libp2p-identity = { workspace = true }
1919
rand = "0.8.3"
2020
smallvec = "1.13.2"
21-
socket2 = { version = "0.5.7", features = ["all"] }
21+
socket2 = { version = "0.6.0", features = ["all"] }
2222
tokio = { workspace = true, default-features = false, features = ["net", "time"], optional = true }
2323
tracing = { workspace = true }
2424
hickory-proto = { workspace = true, features = ["mdns"] }

transports/quic/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ rustls = { version = "0.23.9", default-features = false }
2121
thiserror = { workspace = true }
2222
tokio = { workspace = true, default-features = false, features = ["net", "rt", "time"], optional = true }
2323
tracing = { workspace = true }
24-
socket2 = "0.5.7"
24+
socket2 = "0.6.0"
2525
ring = { workspace = true }
2626

2727
[features]

transports/tcp/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ futures-timer = "3.0"
1616
if-watch = { workspace = true }
1717
libc = "0.2.155"
1818
libp2p-core = { workspace = true }
19-
socket2 = { version = "0.5.7", features = ["all"] }
19+
socket2 = { version = "0.6.0", features = ["all"] }
2020
tokio = { workspace = true, default-features = false, features = ["net"], optional = true }
2121
tracing = { workspace = true }
2222

transports/tcp/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,9 @@ impl Config {
194194
socket.set_only_v6(true)?;
195195
}
196196
if let Some(ttl) = self.ttl {
197-
socket.set_ttl(ttl)?;
197+
socket.set_ttl_v4(ttl)?;
198198
}
199-
socket.set_nodelay(self.nodelay)?;
199+
socket.set_tcp_nodelay(self.nodelay)?;
200200
socket.set_reuse_address(true)?;
201201
#[cfg(all(unix, not(any(target_os = "solaris", target_os = "illumos"))))]
202202
if port_use == PortUse::Reuse {

0 commit comments

Comments
 (0)