From 42d1368c78d9b2883dab5ade2a855cb6174a41aa Mon Sep 17 00:00:00 2001 From: Haomai Wang Date: Thu, 18 Sep 2014 11:17:08 +0800 Subject: [PATCH] AsyncConnection: Rescheduler avoid dead lock Signed-off-by: Haomai Wang --- src/msg/AsyncConnection.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/msg/AsyncConnection.cc b/src/msg/AsyncConnection.cc index c205da01f29..a7a84624730 100644 --- a/src/msg/AsyncConnection.cc +++ b/src/msg/AsyncConnection.cc @@ -1606,7 +1606,8 @@ void AsyncConnection::accept(int incoming) sd = incoming; state = STATE_ACCEPTING; center->create_file_event(sd, EVENT_READABLE, read_handler); - process(); + // rescheduler connection in order to avoid lock dep + center->create_time_event(0, read_handler); } int AsyncConnection::send_message(Message *m) -- 2.47.3