Socket connect remove unused stuff.