In create_connection() make sure `sock` is nonblocking