From: Ilya Dryomov Date: Thu, 20 Oct 2016 17:31:40 +0000 (+0200) Subject: AsyncConnection: dispatch write handler on keepalive2 X-Git-Tag: v11.1.0~351^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F11601%2Fhead;p=ceph.git 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 --- 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; }