fn set_common_flags(socket: Socket) -> Result<Socket>
Set FD_CLOEXEC and NOSIGPIPE on the socket for platforms that need it.
FD_CLOEXEC
NOSIGPIPE
socket