fix, reconnect deadlock, introduce connection round control
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
parent
563cd828ad
commit
7fcb3d70bb
4 changed files with 94 additions and 12 deletions
|
|
@ -805,7 +805,8 @@ pub fn session_start_(
|
|||
if !is_pre_added {
|
||||
let session = session.clone();
|
||||
std::thread::spawn(move || {
|
||||
io_loop(session);
|
||||
let round = session.connection_round_state.lock().unwrap().new_round();
|
||||
io_loop(session, round);
|
||||
});
|
||||
}
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue