• Yehuda Sadeh's avatar
    ceph: reset osd after relevant messages timed out · 422d2cb8
    Yehuda Sadeh authored
    This simplifies the process of timing out messages. We
    keep lru of current messages that are in flight. If a
    timeout has passed, we reset the osd connection, so that
    messages will be retransmitted.  This is a failsafe in case
    we hit some sort of problem sending out message to the OSD.
    Normally, we'll get notification via an updated osdmap if
    there are problems.
    
    If a request is older than the keepalive timeout, send a
    keepalive to ensure we detect any breaks in the TCP connection.
    Signed-off-by: default avatarYehuda Sadeh <yehuda@hq.newdream.net>
    Signed-off-by: default avatarSage Weil <sage@newdream.net>
    422d2cb8
osd_client.c 39.1 KB