Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9DFF81808E for ; Wed, 27 May 2015 09:05:26 +0000 (UTC) Received: (qmail 37387 invoked by uid 500); 27 May 2015 09:05:13 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 37330 invoked by uid 500); 27 May 2015 09:05:13 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 37319 invoked by uid 99); 27 May 2015 09:05:13 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 May 2015 09:05:13 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id EE5E6DFF79; Wed, 27 May 2015 09:05:12 +0000 (UTC) From: wilderrodrigues To: dev@cloudstack.apache.org Reply-To: dev@cloudstack.apache.org References: In-Reply-To: Subject: [GitHub] cloudstack pull request: Build and create tomcat, fix several othe... Content-Type: text/plain Message-Id: <20150527090512.EE5E6DFF79@git1-us-west.apache.org> Date: Wed, 27 May 2015 09:05:12 +0000 (UTC) Github user wilderrodrigues commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/238#discussion_r31114895 --- Diff: plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtConsoleProxyLoadCommandWrapper.java --- @@ -49,6 +49,11 @@ public Answer executeProxyLoadScan(final Command cmd, final long proxyVmId, fina final URL url = new URL(sb.toString()); final URLConnection conn = url.openConnection(); + // setting TIMEOUTs to avoid possible waiting until death situations --- End diff -- Hi @rsafonseca Will you remove the changes from you PR and I add to mine, or should we wait for your stuff to get merged? A couple of question concerning this change: 1. When you run the Unit Tests having this timeout, how do they perform? 2. Before your changes get through, would you mind replacing the magic number by a static final variable with a clear description of the timeout? It could be added to the LibvirtUtilitiesHelper. If the tests get somehow slower due to this, we can also add an accessor method to the timeout value. By doing so we can mock the call and when running the tests we can intercept it and return 0, instead of 5000. Cheers, Wilder --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---