[
https://issues.apache.org/jira/browse/CB-10405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15124652#comment-15124652
]
ASF GitHub Bot commented on CB-10405:
-------------------------------------
Github user nikhilkh commented on a diff in the pull request:
https://github.com/apache/cordova-medic/pull/74#discussion_r51338537
--- Diff: lib/testcheck.js ---
@@ -21,22 +21,40 @@
"use strict";
-module.exports = function (sha, dbHost) {
+module.exports = function (sha, dbHost, maxnumberoftries, delay) {
var http = require("http"),
url = require("url"),
q = require("q");
+ function tryConnect(options, d, pendingnumberoftries, operation,
successCallBack){
+ http.get(options, successCallBack)
+ .on("error", function(e){
+ if(pendingnumberoftries > 1){
+ console.log("Connection attempt to " + operation + "
failed. Will try after: " + delay + " milliseconds.");
--- End diff --
Should you be using the util log function here - as it has some nice
functionality to put time etc?
> Connectivity issue to Cordova VM
> ---------------------------------
>
> Key: CB-10405
> URL: https://issues.apache.org/jira/browse/CB-10405
> Project: Apache Cordova
> Issue Type: Bug
> Reporter: Sarangan Rajamanickam
> Labels: found-by-ci
>
> During Apache Cordova CI, we get errors while checking the cordova VMs. They
> are intermittent. So, we need to add retry logic to the code.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]