(cherry picked from commit 63c40c2ad66e5b32d96cecad0b123db28783ae5c)
support the mode that listen and accept thread be separated (cherry picked from commit 9d68e11f2c09a656f073beac19ff27bdb96a6c8e)