copy the handshake environ from the socket instance