]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/net: fix potential parallel write in SocketConnection 25939/head
authorYingxin Cheng <yingxincheng@gmail.com>
Mon, 14 Jan 2019 02:43:05 +0000 (10:43 +0800)
committerYingxin Cheng <yingxincheng@gmail.com>
Tue, 15 Jan 2019 05:17:48 +0000 (13:17 +0800)
commite56277fbbb3507903c78dab144847cd68de3cba1
treec1e791a5fb200666f734762b0736678c97e47176
parent1d0fcd847d8547c6835fcebf4bd125a600e6da96
crimson/net: fix potential parallel write in SocketConnection

All the write/flush in SocketConnection should be serialized, or nasty
segment-fault could happen in seastar which is hard to diagnose.

This fix serializes the writes in `handle_keepalive2()` with other
writes in the open state.

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
src/crimson/net/SocketConnection.cc