socket: space cleanup