fix bug:  memory of socket  size wrong case segment fault 11