fix: lots of bugs during sockets merge.

Signed-off-by: liuyanghejerry <liuyanghejerry@126.com>