]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg/async: close STATE_WAIT connection in short period 9996/head
authorHaomai Wang <haomai@xsky.com>
Sun, 19 Jun 2016 15:42:36 +0000 (23:42 +0800)
committerLoic Dachary <ldachary@redhat.com>
Wed, 29 Jun 2016 08:19:45 +0000 (10:19 +0200)
commitedd3f799fb1e5d70244412c5a1be17f74397aae2
treed7f4b19b537efafd76b53240bbd345e78c675657
parentaf8e86c20e9b1124abe33f0dff58817fc8aad7c9
msg/async: close STATE_WAIT connection in short period

1. in practice, STATE_WAIT connection caused by racing connect should be
resolved in milliseconds level. we don't need to keep this connection
forever.
2. it will avoid unexpected osd peering hang because of outside network
problem.

Fixes: http://tracker.ceph.com/issues/16378
Signed-off-by: Haomai Wang <haomai@xsky.com>
(cherry picked from commit 4de5407ac96686748497253e4daf51177f809a95)
src/msg/async/AsyncConnection.cc