crimson/net: Fix racing for promise on_message 24097/head
authorYingxin <yingxin.cheng@intel.com>
Fri, 14 Sep 2018 10:21:07 +0000 (18:21 +0800)
committerYingxin <yingxin.cheng@intel.com>
Fri, 14 Sep 2018 10:33:21 +0000 (18:33 +0800)
commit6365e02926371b7cd32deae631bf3e18b90b2e41
treeec3aafa1417201ffe0b395e63fa9a8d4d104a365
parent4e5ee667cef22d04ff098179b6e7ca2bf1838fa1
crimson/net: Fix racing for promise on_message

read_tags_until_next_message() will forward the ready future and create
a new promise for on_message, which assumes there is already a
read_message() holding the previous promise, but it is not true.

Signed-off-by: Yingxin <yingxin.cheng@intel.com>
src/crimson/net/SocketConnection.cc