Skip to content

Commit

Permalink
AsyncConnection: dispatch write handler on keepalive2
Browse files Browse the repository at this point in the history
...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>
  • Loading branch information
idryomov committed Oct 21, 2016
1 parent 8055434 commit 05ba261
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/msg/async/AsyncConnection.cc
Expand Up @@ -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;
}
Expand Down

0 comments on commit 05ba261

Please sign in to comment.