]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
AsyncConnection: dispatch write handler on keepalive2 11601/head
authorIlya Dryomov <idryomov@gmail.com>
Thu, 20 Oct 2016 17:31:40 +0000 (19:31 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 7 Nov 2016 16:00:49 +0000 (17:00 +0100)
...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 <idryomov@gmail.com>
src/msg/async/AsyncConnection.cc

index e0b089b1405004c6d8c046accd263d9eb4e783db..c2f094e7ab800a5dc1807e6db7f09a4f26bfb6f8 100644 (file)
@@ -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;
         }