From aeb979ae4d43edb39136bddae317d88cdacd3c61 Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Thu, 20 Oct 2016 19:31:40 +0200 Subject: [PATCH] AsyncConnection: dispatch write handler on keepalive2 ...otherwise, if the connection is idle (i.e. no proper TAG_MSG messages), keepalive ack will not get sent until some point in the future. Fixes: #17664 Signed-off-by: Ilya Dryomov --- src/msg/async/AsyncConnection.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/msg/async/AsyncConnection.cc b/src/msg/async/AsyncConnection.cc index e0b089b14050..c2f094e7ab80 100644 --- a/src/msg/async/AsyncConnection.cc +++ b/src/msg/async/AsyncConnection.cc @@ -382,6 +382,7 @@ void AsyncConnection::process() write_lock.unlock(); ldout(async_msgr->cct, 20) << __func__ << " got KEEPALIVE2 " << kp_t << dendl; set_last_keepalive(ceph_clock_now(NULL)); + need_dispatch_writer = true; state = STATE_OPEN; break; } -- 2.47.3