Skip to content

Commit 86b36a1

Browse files
authored
Merge pull request ceph#52592 from xxhdx1985126/wip-62098
crimson/net: set TCP_NODELAY according to ms_tcp_nodelay Reviewed-by: Samuel Just <[email protected]> Reviewed-by: Yingxin Cheng <[email protected]> Reviewed-by: Kefu Chai <[email protected]>
2 parents 19b6eaf + e21cfa7 commit 86b36a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/crimson/net/Socket.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ Socket::Socket(
103103
side(_side),
104104
ephemeral_port(e_port)
105105
{
106+
if (local_conf()->ms_tcp_nodelay) {
107+
socket.set_nodelay(true);
108+
}
106109
}
107110

108111
Socket::~Socket()

0 commit comments

Comments
 (0)