Socket little fixes.