]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
msg/async: bug fix 23600 by setting _fd = 1.
authorshangfufei <shangfufei@inspur.com>
Mon, 9 Apr 2018 06:56:24 +0000 (14:56 +0800)
committerGreg Farnum <gfarnum@redhat.com>
Wed, 17 Apr 2019 15:28:00 +0000 (08:28 -0700)
commit9887245b4092ac5c9eaed4b3b42dc42e6891a3f2
treecef4d718ef7ad31343435b5010cb50fb094dd2c7
parent4c79d02f6950b62e65fe9ab1b6d0602246e171ed
msg/async: bug fix 23600 by setting _fd = 1.

After listen_socket was closed, it entered the start() processf magically. so
I think we should make '_fd = -1' when listen_socket was closed. And in the
start process, determine the value of listen_socket, if it equal to -1, return
the process.

Fixes: https://tracker.ceph.com/issues/23600
Signed-off-by: shangfufei <shangfufei@inspur.com>
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/msg/async/AsyncMessenger.cc
src/msg/async/PosixStack.cc