Skip to content

Commit e21cfa7

Browse files
committed
crimson/net: set TCP_NODELAY according to ms_tcp_nodelay
There are cases in which we need low latency of an individual op, like updating RBD image's object map which would block other ops for a object not created yet. We need to make sure the rbd-object-map-update like ops have as low latency as possible Fixes: https://tracker.ceph.com/issues/62098 Signed-off-by: Xuehan Xu <[email protected]>
1 parent d71eea9 commit e21cfa7

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)