Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7dd6813

Browse files
authored
Merge pull request#1014 from niklasha/openbsd-missing-tcp-keepalive-options
OpenBSD misses some TCP keepalive options
2 parentsb19fdd4 +e59a165 commit7dd6813

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎tokio-postgres/src/keepalive.rs‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,17 @@ impl From<&KeepaliveConfig> for TcpKeepalive {
1212
fnfrom(keepalive_config:&KeepaliveConfig) ->Self{
1313
letmut tcp_keepalive =Self::new().with_time(keepalive_config.idle);
1414

15-
#[cfg(not(any(target_os ="redox", target_os ="solaris")))]
15+
#[cfg(not(any(target_os ="redox", target_os ="solaris", target_os ="openbsd")))]
1616
ifletSome(interval) = keepalive_config.interval{
1717
tcp_keepalive = tcp_keepalive.with_interval(interval);
1818
}
1919

20-
#[cfg(not(any(target_os ="redox", target_os ="solaris", target_os ="windows")))]
20+
#[cfg(not(any(
21+
target_os ="redox",
22+
target_os ="solaris",
23+
target_os ="windows",
24+
target_os ="openbsd"
25+
)))]
2126
ifletSome(retries) = keepalive_config.retries{
2227
tcp_keepalive = tcp_keepalive.with_retries(retries);
2328
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp