Added timeout to opening handshake, which caused accept() to block indefinitely