]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg: use timeout when initiating connection 38161/head
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Tue, 17 Nov 2020 13:12:59 +0000 (13:12 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 18 Nov 2020 13:33:37 +0000 (13:33 +0000)
commitceda75aa5866965411fb9fd6374ea3b91f2e10b2
tree25dc3d27f8687f253783b2cadc18271f2f03939e
parentd48c6c4ab9abf2a10428658301ed9c3ca8481dd7
msg: use timeout when initiating connection

There's a timer that enforces a connection timeout but it isn't scoped
properly. It's started only after the ``connect`` request completes.
Because of that, connections can hang in STATE_CONNECTING_RE state
indefinitely if the "connect" operation doesn't complete.

This change will start the timer when entering the STATE_CONNECTING
state.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/msg/async/AsyncConnection.cc