• laplaceyang's avatar
    fix bug: coredump if set linger and immediate together · 67a6594f
    laplaceyang authored
    In function session_base_t::reconnect, if we set immediate to 1 and set linger, we will get into first block of reconnect function, and set pipe to NULL, but we forget to cancel timer of linger. Once timer tiggered, we will get coredump. Solution: cancel timer in the end of set pipe to NULL
    67a6594f
session_base.cpp 19.1 KB